Skip to content

Commit

Permalink
Upgraded major version of jfrog-cli-core v2
Browse files Browse the repository at this point in the history
  • Loading branch information
gowthamkumar529 committed Jul 26, 2022
1 parent 815fcd5 commit 7860862
Show file tree
Hide file tree
Showing 8 changed files with 109 additions and 354 deletions.
9 changes: 5 additions & 4 deletions commands/common.go
Original file line number Diff line number Diff line change
Expand Up @@ -2,14 +2,15 @@ package commands

import (
"fmt"
"github.com/chanti529/repostats/service"
"github.com/chanti529/repostats/util"
"github.com/jfrog/jfrog-cli-core/plugins/components"
"github.com/jfrog/jfrog-cli-core/utils/config"
"regexp"
"strconv"
"strings"
"time"

"github.com/chanti529/repostats/service"
"github.com/chanti529/repostats/util"
"github.com/jfrog/jfrog-cli-core/v2/plugins/components"
"github.com/jfrog/jfrog-cli-core/v2/utils/config"
)

func getCommonFlags() []components.Flag {
Expand Down
6 changes: 3 additions & 3 deletions commands/repostatdownload.go
Original file line number Diff line number Diff line change
Expand Up @@ -8,8 +8,8 @@ import (
"github.com/chanti529/repostats/service"
"github.com/chanti529/repostats/util"
"github.com/cheynewallace/tabby"
"github.com/jfrog/jfrog-cli-core/artifactory/utils"
"github.com/jfrog/jfrog-cli-core/plugins/components"
"github.com/jfrog/jfrog-cli-core/v2/artifactory/utils"
"github.com/jfrog/jfrog-cli-core/v2/plugins/components"
)

func GetRepoStatDownloadCommand() components.Command {
Expand Down Expand Up @@ -77,7 +77,7 @@ func repoStatDownloadCmd(c *components.Context) error {
}
conf.LastDownloadedTo = lastDownloadedTo

servicesManager, err := utils.CreateServiceManager(conf.RtDetails, 5, false)
servicesManager, err := utils.CreateServiceManager(conf.RtDetails, 5, 200, false)
if err != nil {
return err
}
Expand Down
6 changes: 3 additions & 3 deletions commands/repostatsize.go
Original file line number Diff line number Diff line change
Expand Up @@ -8,8 +8,8 @@ import (
"github.com/chanti529/repostats/service"
"github.com/chanti529/repostats/util"
"github.com/cheynewallace/tabby"
"github.com/jfrog/jfrog-cli-core/artifactory/utils"
"github.com/jfrog/jfrog-cli-core/plugins/components"
"github.com/jfrog/jfrog-cli-core/v2/artifactory/utils"
"github.com/jfrog/jfrog-cli-core/v2/plugins/components"
)

func GetRepoStatSizeCommand() components.Command {
Expand Down Expand Up @@ -77,7 +77,7 @@ func repoStatSizeCmd(c *components.Context) error {
}
conf.ModifiedTo = modifiedTo

servicesManager, err := utils.CreateServiceManager(conf.RtDetails, 5, false)
servicesManager, err := utils.CreateServiceManager(conf.RtDetails, 5, 200, false)
if err != nil {
return err
}
Expand Down
46 changes: 26 additions & 20 deletions go.mod
Original file line number Diff line number Diff line change
Expand Up @@ -4,64 +4,70 @@ go 1.18

require (
github.com/cheynewallace/tabby v1.1.0
github.com/jfrog/jfrog-cli-core v1.11.4
github.com/jfrog/jfrog-client-go v0.27.5
github.com/jfrog/jfrog-cli-core/v2 v2.18.6
github.com/jfrog/jfrog-client-go v1.17.0
)

require (
github.com/CycloneDX/cyclonedx-go v0.5.1 // indirect
github.com/Microsoft/go-winio v0.5.0 // indirect
github.com/ProtonMail/go-crypto v0.0.0-20210428141323-04723f9f07d7 // indirect
github.com/acomagu/bufpipe v1.0.3 // indirect
github.com/andybalholm/brotli v1.0.3 // indirect
github.com/buger/jsonparser v1.1.1 // indirect
github.com/chzyer/readline v0.0.0-20180603132655-2972be24d48e // indirect
github.com/codegangsta/cli v1.20.0 // indirect
github.com/cpuguy83/go-md2man/v2 v2.0.1 // indirect
github.com/dsnet/compress v0.0.2-0.20210315054119-f66993602bf5 // indirect
github.com/emirpasic/gods v1.12.0 // indirect
github.com/fsnotify/fsnotify v1.4.7 // indirect
github.com/forPelevin/gomoji v1.1.4 // indirect
github.com/fsnotify/fsnotify v1.5.1 // indirect
github.com/go-git/gcfg v1.5.0 // indirect
github.com/go-git/go-billy/v5 v5.3.1 // indirect
github.com/go-git/go-git/v5 v5.4.2 // indirect
github.com/golang-jwt/jwt/v4 v4.4.1 // indirect
github.com/golang/snappy v0.0.3 // indirect
github.com/gookit/color v1.5.1 // indirect
github.com/hashicorp/hcl v1.0.0 // indirect
github.com/imdario/mergo v0.3.12 // indirect
github.com/jbenet/go-context v0.0.0-20150711004518-d14ea06fba99 // indirect
github.com/jedib0t/go-pretty/v6 v6.3.2 // indirect
github.com/jfrog/build-info-go v1.4.0 // indirect
github.com/jfrog/gofrog v1.2.0 // indirect
github.com/juju/ansiterm v0.0.0-20180109212912-720a0952cc2a // indirect
github.com/kevinburke/ssh_config v0.0.0-20201106050909-4977a11b4351 // indirect
github.com/klauspost/compress v1.13.5 // indirect
github.com/klauspost/cpuid/v2 v2.0.6 // indirect
github.com/klauspost/pgzip v1.2.5 // indirect
github.com/lunixbochs/vtclean v0.0.0-20180621232353-2d01aacdc34a // indirect
github.com/magiconair/properties v1.8.1 // indirect
github.com/manifoldco/promptui v0.8.0 // indirect
github.com/mattn/go-colorable v0.1.7 // indirect
github.com/mattn/go-isatty v0.0.12 // indirect
github.com/mattn/go-shellwords v1.0.3 // indirect
github.com/magiconair/properties v1.8.5 // indirect
github.com/manifoldco/promptui v0.9.0 // indirect
github.com/mattn/go-runewidth v0.0.13 // indirect
github.com/mholt/archiver/v3 v3.5.1 // indirect
github.com/minio/sha256-simd v1.0.1-0.20210617151322-99e45fae3395 // indirect
github.com/mitchellh/go-homedir v1.1.0 // indirect
github.com/mitchellh/mapstructure v1.1.2 // indirect
github.com/mitchellh/mapstructure v1.4.3 // indirect
github.com/nwaples/rardecode v1.1.0 // indirect
github.com/pelletier/go-toml v1.2.0 // indirect
github.com/pelletier/go-toml v1.9.4 // indirect
github.com/pierrec/lz4/v4 v4.1.2 // indirect
github.com/pkg/errors v0.9.1 // indirect
github.com/rivo/uniseg v0.2.0 // indirect
github.com/russross/blackfriday/v2 v2.1.0 // indirect
github.com/sergi/go-diff v1.1.0 // indirect
github.com/spf13/afero v1.1.2 // indirect
github.com/spf13/cast v1.3.0 // indirect
github.com/spf13/jwalterweatherman v1.0.0 // indirect
github.com/spf13/pflag v1.0.3 // indirect
github.com/spf13/viper v1.7.1 // indirect
github.com/spf13/afero v1.6.0 // indirect
github.com/spf13/cast v1.4.1 // indirect
github.com/spf13/jwalterweatherman v1.1.0 // indirect
github.com/spf13/pflag v1.0.5 // indirect
github.com/spf13/viper v1.10.1 // indirect
github.com/subosito/gotenv v1.2.0 // indirect
github.com/ulikunitz/xz v0.5.9 // indirect
github.com/urfave/cli v1.22.9 // indirect
github.com/xanzy/ssh-agent v0.3.1 // indirect
github.com/xi2/xz v0.0.0-20171230120015-48954b6210f8 // indirect
github.com/xo/terminfo v0.0.0-20210125001918-ca9a967f8778 // indirect
golang.org/x/crypto v0.0.0-20220622213112-05595931fe9d // indirect
golang.org/x/net v0.0.0-20211112202133-69e39bad7dc2 // indirect
golang.org/x/sys v0.0.0-20220111092808-5a964db01320 // indirect
golang.org/x/sys v0.0.0-20220520151302-bc2c85ada10a // indirect
golang.org/x/term v0.0.0-20220526004731-065cf7ba2467 // indirect
golang.org/x/text v0.3.7 // indirect
gopkg.in/ini.v1 v1.51.0 // indirect
gopkg.in/ini.v1 v1.66.2 // indirect
gopkg.in/warnings.v0 v0.1.2 // indirect
gopkg.in/yaml.v2 v2.4.0 // indirect
)
Loading

0 comments on commit 7860862

Please sign in to comment.