Skip to content

Commit

Permalink
cocoapods-config
Browse files Browse the repository at this point in the history
  • Loading branch information
barv-jfrog authored and srmish-jfrog committed Nov 2, 2024
1 parent 19c1b9d commit 237e97a
Show file tree
Hide file tree
Showing 3 changed files with 25 additions and 0 deletions.
14 changes: 14 additions & 0 deletions artifactory/cli.go
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,7 @@ package artifactory
import (
"errors"
"fmt"
"github.com/jfrog/jfrog-cli/docs/artifactory/cocoapodsconfig"
"os"
"strconv"
"strings"
Expand Down Expand Up @@ -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)

Check failure on line 420 in artifactory/cli.go

View workflow job for this annotation

GitHub Actions / Script tests (ubuntu-latest)

undefined: project.Cocoapods

Check failure on line 420 in artifactory/cli.go

View workflow job for this annotation

GitHub Actions / Lint ubuntu

undefined: project.Cocoapods

Check failure on line 420 in artifactory/cli.go

View workflow job for this annotation

GitHub Actions / Script tests (ubuntu-20.04)

undefined: project.Cocoapods

Check failure on line 420 in artifactory/cli.go

View workflow job for this annotation

GitHub Actions / Go-Sec ubuntu-latest

undefined: project.Cocoapods

Check failure on line 420 in artifactory/cli.go

View workflow job for this annotation

GitHub Actions / Go-Sec ubuntu-latest

undefined: project.Cocoapods

Check failure on line 420 in artifactory/cli.go

View workflow job for this annotation

GitHub Actions / Script tests (macos-latest)

undefined: project.Cocoapods

Check failure on line 420 in artifactory/cli.go

View workflow job for this annotation

GitHub Actions / Script tests (macos-12)

undefined: project.Cocoapods

Check failure on line 420 in artifactory/cli.go

View workflow job for this annotation

GitHub Actions / Lint windows

undefined: project.Cocoapods

Check failure on line 420 in artifactory/cli.go

View workflow job for this annotation

GitHub Actions / Script tests (windows-latest)

undefined: project.Cocoapods

Check failure on line 420 in artifactory/cli.go

View workflow job for this annotation

GitHub Actions / Lint macos

undefined: project.Cocoapods

Check failure on line 420 in artifactory/cli.go

View workflow job for this annotation

GitHub Actions / Script tests (windows-2019)

undefined: project.Cocoapods

Check failure on line 420 in artifactory/cli.go

View workflow job for this annotation

GitHub Actions / Static Check ubuntu-latest

undefined: project.Cocoapods) (typecheck)

Check failure on line 420 in artifactory/cli.go

View workflow job for this annotation

GitHub Actions / Static Check ubuntu-latest

undefined: project.Cocoapods (typecheck)
},
},
{
Name: "docker-promote",
Flags: cliutils.GetCommandFlags(cliutils.DockerPromote),
Expand Down
7 changes: 7 additions & 0 deletions docs/artifactory/cocoapodsconfig/help.go
Original file line number Diff line number Diff line change
@@ -0,0 +1,7 @@
package cocoapodsconfig

var Usage = []string{"rt cocoapods-config [command options]"}

func GetDescription() string {
return "Generate cocoapods build configuration."
}
4 changes: 4 additions & 0 deletions utils/cliutils/commandsflags.go
Original file line number Diff line number Diff line change
Expand Up @@ -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"
Expand Down Expand Up @@ -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,
},
Expand Down

0 comments on commit 237e97a

Please sign in to comment.