Documentation ¶
Overview ¶
Package githubcli provides a command line interface to the GitHub CLI.
Index ¶
- func GetContainer(ctx context.Context, runtime *daggers.Runtime, opts ...daggers.Option[config]) (*dagger.Container, error)
- func Run(ctx context.Context, runtime *daggers.Runtime, opts ...daggers.Option[config]) (string, error)
- func WithArgs(args ...string) daggers.Option[config]
- func WithContainerCustomizers(customizers ...containers.ContainerCustomizerFn) daggers.Option[config]
- func WithEnv(envMap map[string]string) daggers.Option[config]
- func WithExtensions(extensions ...string) daggers.Option[config]
- func WithGithubCliVersion(version string) daggers.Option[config]
- func WithGoImageRepo(repo string) daggers.Option[config]
- func WithGoImageTag(tag string) daggers.Option[config]
- func WithMountWorkDir(mount bool) daggers.Option[config]
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func GetContainer ¶
func GetContainer( ctx context.Context, runtime *daggers.Runtime, opts ...daggers.Option[config], ) (*dagger.Container, error)
GetContainer returns a dagger container instance with github cli as entrypoint.
func Run ¶
func Run(ctx context.Context, runtime *daggers.Runtime, opts ...daggers.Option[config]) (string, error)
Run runs the ginkgo run command with given options.
func WithContainerCustomizers ¶
func WithContainerCustomizers(customizers ...containers.ContainerCustomizerFn) daggers.Option[config]
WithContainerCustomizers adds the container customizers to use for the container.
func WithExtensions ¶
WithExtensions sets the extensions to install for github cli.
func WithGithubCliVersion ¶
WithGithubCliVersion sets the github cli version to use for the container.
func WithGoImageRepo ¶
WithGoImageRepo sets whether to enable go module caching. Optional, defaults to docker.io/golang.
func WithGoImageTag ¶
WithGoImageTag sets the go image tag to use for the container. Optional, defaults to 1.19.
func WithMountWorkDir ¶
WithMountWorkDir sets whether to mount runtime workdir to the container. Optional, defaults to true.
Types ¶
This section is empty.