jfrogcli
JFrog CLI is a command-line tool that allows you to interact with JFrog products,such as Artifactory and Xray.
Installation
dagger install github.com/felipepimentel/daggerverse/libraries/jfrogcli@v0.0.0
Entrypoint
Return Type
Jfrogcli !
Arguments
Name | Type | Default Value | Description |
---|---|---|---|
version | String | "2.71.5" | version of the JFrog CLI to install. If empty, the latest version will be installed. |
Example
dagger -m github.com/felipepimentel/daggerverse/libraries/jfrogcli@a6e2b170f4c091b039eb27100249bb19972839d7 call \
func (m *myModule) example() *Jfrogcli {
return dag.
Jfrogcli()
}
@function
def example() -> dag.Jfrogcli:
return (
dag.jfrogcli()
)
@func()
example(): Jfrogcli {
return dag
.jfrogcli()
}
Types
Jfrogcli 🔗
Jfrogcli is a Dagger Module to install and run the JFrog CLI.
version() 🔗
Version of the JFrog CLI binary.
Return Type
String !
Example
dagger -m github.com/felipepimentel/daggerverse/libraries/jfrogcli@a6e2b170f4c091b039eb27100249bb19972839d7 call \
version
func (m *myModule) example(ctx context.Context) string {
return dag.
Jfrogcli().
Version(ctx)
}
@function
async def example() -> str:
return await (
dag.jfrogcli()
.version()
)
@func()
async example(): Promise<string> {
return dag
.jfrogcli()
.version()
}
getLatestVersion() 🔗
GetLatestVersion returns the latest version of the JFrog CLI.
Return Type
String !
Example
dagger -m github.com/felipepimentel/daggerverse/libraries/jfrogcli@a6e2b170f4c091b039eb27100249bb19972839d7 call \
get-latest-version
func (m *myModule) example(ctx context.Context) string {
return dag.
Jfrogcli().
GetLatestVersion(ctx)
}
@function
async def example() -> str:
return await (
dag.jfrogcli()
.get_latest_version()
)
@func()
async example(): Promise<string> {
return dag
.jfrogcli()
.getLatestVersion()
}
install() 🔗
Install installs the JFrog CLI into the given container.
Return Type
Container !
Arguments
Name | Type | Default Value | Description |
---|---|---|---|
base | Container | - | No description provided |
Example
dagger -m github.com/felipepimentel/daggerverse/libraries/jfrogcli@a6e2b170f4c091b039eb27100249bb19972839d7 call \
install
func (m *myModule) example() *Container {
return dag.
Jfrogcli().
Install()
}
@function
def example() -> dagger.Container:
return (
dag.jfrogcli()
.install()
)
@func()
example(): Container {
return dag
.jfrogcli()
.install()
}