diff --git a/artifactory/cli.go b/artifactory/cli.go index f282938f3..fb9c2423d 100644 --- a/artifactory/cli.go +++ b/artifactory/cli.go @@ -3,6 +3,7 @@ package artifactory import ( "errors" "fmt" + "github.com/jfrog/jfrog-cli/docs/artifactory/cocoapodsconfig" "os" "strconv" "strings" @@ -406,6 +407,19 @@ func GetCommands() []cli.Command { return cliutils.RunNativeCmdWithDeprecationWarning("gradle", project.Gradle, c, buildtools.GradleCmd) }, }, + { + Name: "cocoapods-config", + Hidden: true, + Aliases: []string{"cocoapodsc"}, + Flags: cliutils.GetCommandFlags(cliutils.CocoapodsConfig), + Usage: gradleconfig.GetDescription(), + HelpName: corecommon.CreateUsage("rt cocoapods-config", cocoapodsconfig.GetDescription(), cocoapodsconfig.Usage), + ArgsUsage: common.CreateEnvVars(), + BashComplete: corecommon.CreateBashCompletionFunc(), + Action: func(c *cli.Context) error { + return cliutils.RunConfigCmdWithDeprecationWarning("cocoapodsc", "rt", project.Cocoapods, c, cliutils.CreateConfigCmd) + }, + }, { Name: "docker-promote", Flags: cliutils.GetCommandFlags(cliutils.DockerPromote), diff --git a/docs/artifactory/cocoapodsconfig/help.go b/docs/artifactory/cocoapodsconfig/help.go new file mode 100644 index 000000000..a334e48a1 --- /dev/null +++ b/docs/artifactory/cocoapodsconfig/help.go @@ -0,0 +1,7 @@ +package cocoapodsconfig + +var Usage = []string{"rt cocoapods-config [command options]"} + +func GetDescription() string { + return "Generate cocoapods build configuration." +} diff --git a/utils/cliutils/commandsflags.go b/utils/cliutils/commandsflags.go index 957c2f6c8..0274ad6c0 100644 --- a/utils/cliutils/commandsflags.go +++ b/utils/cliutils/commandsflags.go @@ -37,6 +37,7 @@ const ( GitLfsClean = "git-lfs-clean" Mvn = "mvn" MvnConfig = "mvn-config" + CocoapodsConfig = "cocoapods-config" Gradle = "gradle" GradleConfig = "gradle-config" DockerPromote = "docker-promote" @@ -1815,6 +1816,9 @@ var commandFlags = map[string][]string{ url, user, password, accessToken, sshPassphrase, sshKeyPath, serverId, refs, glcRepo, glcDryRun, glcQuiet, InsecureTls, retries, retryWaitTime, }, + CocoapodsConfig: { + global, serverIdResolve, repoResolve, + }, MvnConfig: { global, serverIdResolve, serverIdDeploy, repoResolveReleases, repoResolveSnapshots, repoDeployReleases, repoDeploySnapshots, includePatterns, excludePatterns, UseWrapper, },