Skip to content

Commit 7c4bd5e

Browse files
committed
Improve upload archive progress bar
Signed-off-by: Michael Sverdlov <michaelsv@jfrog.com>
1 parent b7312fd commit 7c4bd5e

File tree

2 files changed

+17
-3
lines changed

2 files changed

+17
-3
lines changed

docs/buildtools/setup/help.go

Lines changed: 11 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,16 @@
11
package setup
22

3-
var Usage = []string{"setmeup [command options]"}
3+
import (
4+
"fmt"
5+
"github.com/jfrog/jfrog-cli-core/v2/artifactory/commands/setup"
6+
)
7+
8+
var Usage = []string{"setup [command options]",
9+
"setup <package manager> [command options]"}
410

511
func GetDescription() string {
6-
return "Select a package manager to configure to work with JFrog Artifactory."
12+
return fmt.Sprintf(
13+
`An interactive command to set up your local package manager to work with JFrog Artifactory.
14+
Supported package managers are: %v`,
15+
setup.GetSupportedPackageManagersList())
716
}

utils/cliutils/commandsflags.go

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -587,6 +587,7 @@ const (
587587
lcDryRun = lifecyclePrefix + dryRun
588588
lcIncludeRepos = lifecyclePrefix + IncludeRepos
589589
lcExcludeRepos = lifecyclePrefix + ExcludeRepos
590+
setupRepo = repo
590591
)
591592

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

17281733
var commandFlags = map[string][]string{
@@ -2092,7 +2097,7 @@ var commandFlags = map[string][]string{
20922097
branch, repository, serverId,
20932098
},
20942099
Setup: {
2095-
serverId, url, user, password, accessToken, Project, repo,
2100+
serverId, url, user, password, accessToken, Project, setupRepo,
20962101
},
20972102
}
20982103

0 commit comments

Comments
 (0)