commands

package
v0.0.0-...-1b89441 Latest Latest
Warning

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

Go to latest
Published: Oct 21, 2024 License: MPL-2.0 Imports: 22 Imported by: 0

Documentation

Index

Constants

View Source
const DefaultHostname = "registrytools.cloud"

DefaultHostname is the default hostname for Registry Tools Cloud

Variables

View Source
var (
	ErrLoginRequired = errors.New("no credentials found. Set the credentials in the environment or use `rt login`")
)

Functions

func GHACommandFactory

func GHACommandFactory() (cli.Command, error)

func GetSDK

func GetSDK() (sdk.SDK, error)

func LoginCommandFactory

func LoginCommandFactory() (cli.Command, error)

func PublishCommandFactory

func PublishCommandFactory() (cli.Command, error)

Types

type ModuleArgs

type ModuleArgs struct {
	Namespace string
	Version   string
	Name      string
	System    string
	Directory string
}

func ModuleArgsFromAction

func ModuleArgsFromAction() (*ModuleArgs, error)

ModuleArgsFromAction returns a ModuleArgs from GitHub Actions inputs. If any input is missing or invalid, this function will perform a fatal program exit.

func (ModuleArgs) Module

func (m ModuleArgs) Module() module.Module

Jump to

Keyboard shortcuts

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