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 Feb 4, 2025
1 parent e068b6b commit f2d4202
Showing 1 changed file with 13 additions and 12 deletions.
25 changes: 13 additions & 12 deletions buildtools/cli.go
Original file line number Diff line number Diff line change
Expand Up @@ -8,6 +8,7 @@ import (
"github.com/jfrog/jfrog-cli-core/v2/artifactory/utils"
"github.com/jfrog/jfrog-cli-core/v2/utils/ioutils"
"github.com/jfrog/jfrog-cli-security/utils/techutils"
setupdocs "github.com/jfrog/jfrog-cli/docs/buildtools/setup"
"os"
"strconv"
"strings"
Expand Down Expand Up @@ -73,17 +74,18 @@ const (

func GetCommands() []cli.Command {
return cliutils.GetSortedCommands(cli.CommandsByName{
// Currently, the setup command is commented out, but it is ready to be used.
//{
// Name: "setup",
// Flags: cliutils.GetCommandFlags(cliutils.Setup),
// Usage: setupdocs.GetDescription(),
// HelpName: corecommon.CreateUsage("setup", setupdocs.GetDescription(), setupdocs.Usage),
// ArgsUsage: common.CreateEnvVars(),
// UsageText: setupdocs.GetArguments(),
// BashComplete: corecommon.CreateBashCompletionFunc(setup.GetSupportedPackageManagersList()...),
// Action: setupCmd,
//},
{
// Currently, the setup command is hidden from the help menu, till it will be released as GA.
Hidden: true,
Name: "setup",
Flags: cliutils.GetCommandFlags(cliutils.Setup),
Usage: setupdocs.GetDescription(),
HelpName: corecommon.CreateUsage("setup", setupdocs.GetDescription(), setupdocs.Usage),
ArgsUsage: common.CreateEnvVars(),
UsageText: setupdocs.GetArguments(),
BashComplete: corecommon.CreateBashCompletionFunc(setup.GetSupportedPackageManagersList()...),
Action: setupCmd,
},
{
Name: "mvn-config",
Aliases: []string{"mvnc"},
Expand Down Expand Up @@ -943,7 +945,6 @@ func NpmPublishCmd(c *cli.Context) (err error) {
return
}

// Currently, the setup command is commented out, but it is ready to be used.
func setupCmd(c *cli.Context) (err error) {
if c.NArg() > 1 {
return cliutils.WrongNumberOfArgumentsHandler(c)
Expand Down

0 comments on commit f2d4202

Please sign in to comment.