Documentation
¶
Index ¶
- Constants
- Variables
- func CreateBashCmd(app *ApplicationSetup) *cobra.Command
- func CreateBuildTimeCmd(app *ApplicationSetup) *cobra.Command
- func CreateCommitCmd(app *ApplicationSetup) *cobra.Command
- func CreateDocCmd() *cobra.Command
- func CreateManCmd(app *ApplicationSetup) *cobra.Command
- func CreateNameCmd(app *ApplicationSetup) *cobra.Command
- func CreateVersionCmd(app *ApplicationSetup) *cobra.Command
- type ApplicationSetup
- type BuildTime
- type Cancel
- type Commit
- type Context
- type Description
- type DescriptionLong
- type Exec
- type Name
- type Service
- type StartTime
- type Version
Constants ¶
View Source
const EnvPanicFork = "VSH_PANIC_FORK"
Variables ¶
View Source
var Set = wire.NewSet( NewService, NewDescription, NewDescriptionLong, NewExec, NewBuildTime, NewStartTime, NewVersion, NewContext, NewName, NewCancel, NewCommit, )
Functions ¶
func CreateBashCmd ¶
func CreateBashCmd(app *ApplicationSetup) *cobra.Command
func CreateBuildTimeCmd ¶
func CreateBuildTimeCmd(app *ApplicationSetup) *cobra.Command
func CreateCommitCmd ¶
func CreateCommitCmd(app *ApplicationSetup) *cobra.Command
func CreateDocCmd ¶
func CreateManCmd ¶
func CreateManCmd(app *ApplicationSetup) *cobra.Command
func CreateNameCmd ¶
func CreateNameCmd(app *ApplicationSetup) *cobra.Command
func CreateVersionCmd ¶
func CreateVersionCmd(app *ApplicationSetup) *cobra.Command
Types ¶
type ApplicationSetup ¶
type ApplicationSetup struct {
Name string
Version string
Commit string
BuildTime time.Time
StartTime time.Time
Cancel context.CancelFunc
Context context.Context
Exec string
Description string
DescriptionLong string
Service string
ConfigPath string
// contains filtered or unexported fields
}
func (*ApplicationSetup) ForkForPanicLogging ¶
func (a *ApplicationSetup) ForkForPanicLogging() bool
func (*ApplicationSetup) RegisterCommands ¶
func (a *ApplicationSetup) RegisterCommands()
func (*ApplicationSetup) RootCommand ¶
func (a *ApplicationSetup) RootCommand() *cobra.Command
func (*ApplicationSetup) Run ¶
func (a *ApplicationSetup) Run()
func (*ApplicationSetup) SetBuildTime ¶
func (a *ApplicationSetup) SetBuildTime(in string)
type BuildTime ¶
func NewBuildTime ¶
func NewBuildTime(app *ApplicationSetup) BuildTime
type Cancel ¶
type Cancel context.CancelFunc
func NewCancel ¶
func NewCancel(app *ApplicationSetup) Cancel
func (Cancel) CancelFunc ¶
func (c Cancel) CancelFunc() context.CancelFunc
type Context ¶
func NewContext ¶
func NewContext(app *ApplicationSetup) Context
type Description ¶
type Description string
func NewDescription ¶
func NewDescription(app *ApplicationSetup) Description
type DescriptionLong ¶
type DescriptionLong string
func NewDescriptionLong ¶
func NewDescriptionLong(app *ApplicationSetup) DescriptionLong
type StartTime ¶
func NewStartTime ¶
func NewStartTime(app *ApplicationSetup) StartTime
Click to show internal directories.
Click to hide internal directories.