Skip to content

Commit

Permalink
Improve upload archive progress bar
Browse files Browse the repository at this point in the history
Signed-off-by: Michael Sverdlov <[email protected]>
  • Loading branch information
sverdlov93 committed Nov 21, 2024
1 parent f4caa49 commit 1035da0
Show file tree
Hide file tree
Showing 3 changed files with 19 additions and 8 deletions.
10 changes: 5 additions & 5 deletions buildtools/cli.go
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,7 @@ import (
"github.com/jfrog/jfrog-cli-core/v2/artifactory/commands/packagemanagerlogin"
"github.com/jfrog/jfrog-cli-core/v2/utils/ioutils"
"github.com/jfrog/jfrog-cli-security/utils/techutils"
"github.com/jfrog/jfrog-cli/docs/buildtools/setmeup"
"os"
"strconv"
"strings"
Expand Down Expand Up @@ -74,11 +75,10 @@ func GetCommands() []cli.Command {
return cliutils.GetSortedCommands(cli.CommandsByName{
{
Name: "setmeup",
Flags: cliutils.GetCommandFlags(cliutils.Mvn),
Usage: mvndoc.GetDescription(),
HelpName: corecommon.CreateUsage("mvn", mvndoc.GetDescription(), mvndoc.Usage),
UsageText: mvndoc.GetArguments(),
ArgsUsage: common.CreateEnvVars(mvndoc.EnvVar...),
Flags: cliutils.GetCommandFlags(cliutils.Setmeup),
Usage: setmeup.GetDescription(),
HelpName: corecommon.CreateUsage("setmeup", setmeup.GetDescription(), setmeup.Usage),
ArgsUsage: common.CreateEnvVars(),
BashComplete: corecommon.CreateBashCompletionFunc(),
Action: packageManagerLoginInteractiveCmd,
},
Expand Down
7 changes: 7 additions & 0 deletions docs/buildtools/setmeup/help.go
Original file line number Diff line number Diff line change
@@ -0,0 +1,7 @@
package setmeup

var Usage = []string{"setmeup [command options]"}

func GetDescription() string {
return "Select a package manager to configure to work with JFrog Artifactory."
}
10 changes: 7 additions & 3 deletions utils/cliutils/commandsflags.go
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,6 @@ const (
Intro = "intro"

// Artifactory's Commands Keys
DeleteConfig = "delete-config"
Upload = "upload"
Download = "download"
Move = "move"
Expand All @@ -34,6 +33,7 @@ const (
BuildAddGit = "build-add-git"
BuildCollectEnv = "build-collect-env"
GitLfsClean = "git-lfs-clean"
Setmeup = "setmeup"
Mvn = "mvn"
MvnConfig = "mvn-config"
CocoapodsConfig = "cocoapods-config"
Expand Down Expand Up @@ -107,8 +107,9 @@ const (
JpdDelete = "jpd-delete"

// Config commands keys
AddConfig = "config-add"
EditConfig = "config-edit"
AddConfig = "config-add"
EditConfig = "config-edit"
DeleteConfig = "delete-config"

// Project commands keys
InitProject = "project-init"
Expand Down Expand Up @@ -2085,6 +2086,9 @@ var commandFlags = map[string][]string{
SyncStatus: {
branch, repository, serverId,
},
Setmeup: {
serverId, url, user, password, accessToken,
},
}

func GetCommandFlags(cmd string) []cli.Flag {
Expand Down

0 comments on commit 1035da0

Please sign in to comment.