cmd

package
v0.0.0-...-e4dc476 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Nov 7, 2021 License: MIT Imports: 7 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type AppCommand

type AppCommand struct {
}

func (*AppCommand) Execute

func (cmd *AppCommand) Execute([]string) error

type CleanCommand

type CleanCommand struct {
	TokenType      string `long:"token-type" description:"Gitlab Token Type" choice:"job" choice:"private" default:"private" env:"GITLAB_TOKEN_TYPE"`
	Token          string `long:"token" description:"API token to access Gitlab ($CI_JOB_TOKEN)" required:"true" env:"GITLAB_TOKEN"`
	ApiV4URL       string `long:"api-v4-url" description:"Gitlab API v4 URL ($CI_API_V4_URL)" required:"true" env:"GITLAB_API_V4_URL"`
	ProjectID      string `long:"project-id" description:"Gitlab Project ID ($CI_PROJECT_ID)" required:"true" env:"GITLAB_PROJECT_ID"`
	RepositoryName string `` /* 126-byte string literal not displayed */
}

func RegisterCleanCommand

func RegisterCleanCommand(parser *flags.Parser) *CleanCommand

func (*CleanCommand) Execute

func (cmd *CleanCommand) Execute(_ []string) error

type RepositoryData

type RepositoryData struct {
	ID   int    `json:"id"`
	Name string `json:"name"`
}

type VersionCommand

type VersionCommand struct {
	// contains filtered or unexported fields
}

func RegisterVersionCommand

func RegisterVersionCommand(parser *flags.Parser, appVersion, gitCommit string) *VersionCommand

func (*VersionCommand) Execute

func (cmd *VersionCommand) Execute(args []string) error

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL