command

package
v0.0.0-...-a52e318 Latest Latest
Warning

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

Go to latest
Published: May 22, 2024 License: Apache-2.0 Imports: 14 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func GetBuildParam

func GetBuildParam(c *cli.Context) string

GetBuildParam checks and returns the build id/slug parameter.

func GetClientParam

func GetClientParam(c *cli.Context) string

GetClientParam checks and returns the client id/slug parameter.

func GetIdentifierParam

func GetIdentifierParam(c *cli.Context) string

GetIdentifierParam checks and returns the record id/slug parameter.

func GetModParam

func GetModParam(c *cli.Context) string

GetModParam checks and returns the mod id/slug parameter.

func GetPackParam

func GetPackParam(c *cli.Context) string

GetPackParam checks and returns the pack id/slug parameter.

func GetTeamParam

func GetTeamParam(c *cli.Context) string

GetTeamParam checks and returns the team id/slug parameter.

func GetUserParam

func GetUserParam(c *cli.Context) string

GetUserParam checks and returns the user id/slug parameter.

func GetVersionParam

func GetVersionParam(c *cli.Context) string

GetVersionParam checks and returns the version id/slug parameter.

func Handle

func Handle(c *cli.Context, fn HandleFunc) error

Handle wraps the command function handler.

func PrettyError

func PrettyError(err error) error

PrettyError catches regular networking errors and prints it.

func Profile

func Profile() *cli.Command

Profile provides the sub-command for the profile API.

func ProfileLogin

func ProfileLogin(c *cli.Context, _ *Client) error

ProfileLogin provides the sub-command to login by credentials.

func ProfileShow

func ProfileShow(c *cli.Context, _ *Client) error

ProfileShow provides the sub-command to show profile details.

func ProfileToken

func ProfileToken(c *cli.Context, _ *Client) error

ProfileToken provides the sub-command to show your token.

func ProfileUpdate

func ProfileUpdate(_ *cli.Context, _ *Client) error

ProfileUpdate provides the sub-command to update the profile.

func Run

func Run() error

Run parses the command line arguments and executes the program.

func Team

func Team() *cli.Command

Team provides the sub-command for the team API.

func TeamCreate

func TeamCreate(c *cli.Context, client *Client) error

TeamCreate provides the sub-command to create a team.

func TeamDelete

func TeamDelete(c *cli.Context, client *Client) error

TeamDelete provides the sub-command to delete a team.

func TeamList

func TeamList(c *cli.Context, client *Client) error

TeamList provides the sub-command to list all teams.

func TeamShow

func TeamShow(c *cli.Context, client *Client) error

TeamShow provides the sub-command to show team details.

func TeamUpdate

func TeamUpdate(c *cli.Context, client *Client) error

TeamUpdate provides the sub-command to update a team.

func TeamUserAppend

func TeamUserAppend(c *cli.Context, client *Client) error

TeamUserAppend provides the sub-command to append a user to the team.

func TeamUserList

func TeamUserList(c *cli.Context, client *Client) error

TeamUserList provides the sub-command to list users of the team.

func TeamUserRemove

func TeamUserRemove(c *cli.Context, client *Client) error

TeamUserRemove provides the sub-command to remove a user from the team.

func User

func User() *cli.Command

User provides the sub-command for the user API.

func UserCreate

func UserCreate(c *cli.Context, client *Client) error

UserCreate provides the sub-command to create a user.

func UserDelete

func UserDelete(c *cli.Context, client *Client) error

UserDelete provides the sub-command to delete a user.

func UserList

func UserList(c *cli.Context, client *Client) error

UserList provides the sub-command to list all users.

func UserShow

func UserShow(c *cli.Context, client *Client) error

UserShow provides the sub-command to show user details.

func UserTeamAppend

func UserTeamAppend(c *cli.Context, client *Client) error

UserTeamAppend provides the sub-command to append a team to the user.

func UserTeamList

func UserTeamList(c *cli.Context, client *Client) error

UserTeamList provides the sub-command to list teams of the user.

func UserTeamRemove

func UserTeamRemove(c *cli.Context, client *Client) error

UserTeamRemove provides the sub-command to remove a team from the user.

func UserUpdate

func UserUpdate(c *cli.Context, client *Client) error

UserUpdate provides the sub-command to update a user.

Types

type Client

type Client struct {
	*kleister.Client
}

Client simply wraps the openapi client including authentication.

type HandleFunc

type HandleFunc func(c *cli.Context, client *Client) error

HandleFunc is the real handle implementation.

Jump to

Keyboard shortcuts

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