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 Jan 7, 2025
1 parent b7312fd commit 7c4bd5e
Show file tree
Hide file tree
Showing 2 changed files with 17 additions and 3 deletions.
13 changes: 11 additions & 2 deletions docs/buildtools/setup/help.go
Original file line number Diff line number Diff line change
@@ -1,7 +1,16 @@
package setup

var Usage = []string{"setmeup [command options]"}
import (
"fmt"
"github.com/jfrog/jfrog-cli-core/v2/artifactory/commands/setup"
)

var Usage = []string{"setup [command options]",
"setup <package manager> [command options]"}

func GetDescription() string {
return "Select a package manager to configure to work with JFrog Artifactory."
return fmt.Sprintf(
`An interactive command to set up your local package manager to work with JFrog Artifactory.
Supported package managers are: %v`,
setup.GetSupportedPackageManagersList())
}
7 changes: 6 additions & 1 deletion utils/cliutils/commandsflags.go
Original file line number Diff line number Diff line change
Expand Up @@ -587,6 +587,7 @@ const (
lcDryRun = lifecyclePrefix + dryRun
lcIncludeRepos = lifecyclePrefix + IncludeRepos
lcExcludeRepos = lifecyclePrefix + ExcludeRepos
setupRepo = repo
)

var flagsMap = map[string]cli.Flag{
Expand Down Expand Up @@ -1723,6 +1724,10 @@ var flagsMap = map[string]cli.Flag{
Name: Reference,
Usage: "[Default: false] Generate a Reference Token (alias to Access Token) in addition to the full token (available from Artifactory 7.38.10)` `",
},
setupRepo: cli.StringFlag{
Name: repo,
Usage: "[Optional] Specifies the Artifactory repository name for the selected package manager, replacing the interactive repository selection.` `",
},
}

var commandFlags = map[string][]string{
Expand Down Expand Up @@ -2092,7 +2097,7 @@ var commandFlags = map[string][]string{
branch, repository, serverId,
},
Setup: {
serverId, url, user, password, accessToken, Project, repo,
serverId, url, user, password, accessToken, Project, setupRepo,
},
}

Expand Down

0 comments on commit 7c4bd5e

Please sign in to comment.