jfrogcli
JFrog CLI is a command-line tool that allows you to interact with JFrog products,such as Artifactory and Xray.
Example (Run)
no available example in current language
func (e *Examples) JFrogCLI_Run(ctx context.Context) (string, error) {
return dag.Jfrogcli().Install().
WithExec([]string{"jf", "--version"}).
Stdout(ctx)
}
no available example in current language
no available example in current language
Example (Install)
no available example in current language
func (e *Examples) JFrogCLI_Install() *dagger.Container {
return dag.Jfrogcli().Install()
}
no available example in current language
no available example in current language
Example (InstallInto)
no available example in current language
func (e *Examples) JFrogCLI_InstallInto(ctr *dagger.Container) *dagger.Container {
return dag.Jfrogcli().Install(dagger.JfrogcliInstallOpts{
Base: ctr,
})
}
no available example in current language
no available example in current language
Example (InstallVersion)
no available example in current language
func (e *Examples) JFrogCLI_InstallVersion(version string) *dagger.Container {
return dag.Jfrogcli(dagger.JfrogcliOpts{
Version: version,
}).Install()
}
no available example in current language
no available example in current language
Installation
dagger install github.com/vbehar/daggerverse/jfrogcli@v0.5.2
Entrypoint
Return Type
Jfrogcli !
Arguments
Name | Type | Description |
---|---|---|
version | String | version of the JFrog CLI to install. If empty, the latest version will be installed. |
Example
dagger -m github.com/vbehar/daggerverse/jfrogcli@a9504d940c730129f3c9f371d9c72d90396aaf7d 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/vbehar/daggerverse/jfrogcli@a9504d940c730129f3c9f371d9c72d90396aaf7d 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/vbehar/daggerverse/jfrogcli@a9504d940c730129f3c9f371d9c72d90396aaf7d 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/vbehar/daggerverse/jfrogcli@a9504d940c730129f3c9f371d9c72d90396aaf7d 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()
}