cmd

package
v0.1.1 Latest Latest
Warning

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

Go to latest
Published: Jun 27, 2022 License: MIT Imports: 21 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func NewCreateRepoCmd

func NewCreateRepoCmd(ctx context.Context) *cobra.Command

NewCreateRepoCmd creates a new create repo command

func NewDeleteRepoCmd

func NewDeleteRepoCmd(ctx context.Context) *cobra.Command

NewDeleteRepoCmd creates a new delete repo command

func NewHiringCmd

func NewHiringCmd(ctx context.Context) *cobra.Command

NewHiringCmd aggregates the hiring comamnds

func NewHiringSendCmd

func NewHiringSendCmd(ctx context.Context) *cobra.Command

NewHiringSendCmd creates a new send hiring test command

func NewHiringUnseat

func NewHiringUnseat(ctx context.Context) *cobra.Command

NewHiringUnseat creates a new hiring unseat command

func NewRepoCmd

func NewRepoCmd(ctx context.Context) *cobra.Command

NewRepoCmd aggregates the repo comamnds

func NewRootCmd

func NewRootCmd() *cobra.Command

NewRootCmd creates the root command

func NewUpdateCmd

func NewUpdateCmd(ctx context.Context) *cobra.Command

NewUpdateCmd creates a new update command

func NewVersionCmd

func NewVersionCmd(ctx context.Context) *cobra.Command

NewVersionCmd creates a new version command

func RunCreateRepo

func RunCreateRepo(ctx context.Context, repoName string, opts *CreateRepoOptions) error

RunCreateRepo runs the command to create a new repository

func RunCreateTestRepo

func RunCreateTestRepo(ctx context.Context, candidate string, testRepo string, reference plumbing.ReferenceName) error

RunCreateTestRepo runs the command to create a new hiring test repository

func RunDeleteRepo

func RunDeleteRepo(ctx context.Context, name string, opts *DeleteRepoOpts) error

RunDeleteRepo runs the command to delete a repository

func RunUnseat

func RunUnseat(ctx context.Context, opts *UnseatOpts) error

RunUnseat runs the command to create a new hiring test repository

func RunUpdate

func RunUpdate(ctx context.Context, opts *UpdateOptions) error

RunUpdate runs the update command

Types

type CreateRepoOptions

type CreateRepoOptions struct {
	Description          string
	Private              bool
	HasTeams             bool
	HasCollaborators     bool
	HasLabels            bool
	HasDefaultLabels     bool
	HasWebhooks          bool
	HasBranchProtections bool
	HasIssues            bool
	HasWiki              bool
	HasPages             bool
}

CreateRepoOptions are the flags for the create repository command

type DeleteRepoOpts

type DeleteRepoOpts struct{}

DeleteRepoOpts are the flags for the delete repo command

type HiringSendOpts

type HiringSendOpts struct{}

HiringSendOpts are the flags for the send a hiring test command

type RootOptions

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

RootOptions represents the ahoy global options

type UnseatOpts

type UnseatOpts struct {
	Page         int
	ReposPerPage int
}

UnseatOpts are the flags for the unseat command

type UpdateOptions

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

UpdateOptions are the command flags

Jump to

Keyboard shortcuts

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