Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func InteractiveModes ¶
func InteractiveModes() []string
InteractiveModes returns the list of names of available interactive run modes
Types ¶
type Check ¶
type Check struct { }
Check is a type of run mode allowing to verify configuration and parameters and exit
func (Check) AutoPushDefault ¶
AutoPushDefault returns the default value of git auto-push option with this run mode
func (Check) IsInteractive ¶
IsInteractive indicates if this run mode allows user interaction
func (Check) NeedsCountdownTimer ¶
NeedsCountdownTimer indicates if a countdown timer is needed with this run mode
type Log ¶
type Log struct { }
Log is a type of run mode allowing to print commit history
func (Log) AutoPushDefault ¶
AutoPushDefault returns the default value of git auto-push option with this run mode
func (Log) IsInteractive ¶
IsInteractive indicates if this run mode allows user interaction
func (Log) NeedsCountdownTimer ¶
NeedsCountdownTimer indicates if a countdown timer is needed with this run mode
type Mob ¶
type Mob struct { }
Mob is a type of run mode useful when the application is used by a mob of users
func (Mob) AutoPushDefault ¶
AutoPushDefault returns the default value of git auto-push option with this run mode
func (Mob) IsInteractive ¶
IsInteractive indicates if this run mode allows user interaction
func (Mob) NeedsCountdownTimer ¶
NeedsCountdownTimer indicates if a countdown timer is needed with this run mode
type OneShot ¶
type OneShot struct { }
OneShot is a type of run mode allowing to run a single TCR cycle and exit
func (OneShot) AutoPushDefault ¶
AutoPushDefault returns the default value of git auto-push option with this run mode
func (OneShot) IsInteractive ¶
IsInteractive indicates if this run mode allows user interaction
func (OneShot) NeedsCountdownTimer ¶
NeedsCountdownTimer indicates if a countdown timer is needed with this run mode
type RunMode ¶
type RunMode interface { Name() string AutoPushDefault() bool NeedsCountdownTimer() bool IsInteractive() bool IsActive() bool }
RunMode is the interface that any run mode needs to satisfy to bee used by the TCR engine
type Solo ¶
type Solo struct { }
Solo is a type of run mode useful when the application is used by a single user
func (Solo) AutoPushDefault ¶
AutoPushDefault returns the default value of git auto-push option with this run mode
func (Solo) IsInteractive ¶
IsInteractive indicates if this run mode allows user interaction
func (Solo) NeedsCountdownTimer ¶
NeedsCountdownTimer indicates if a countdown timer is needed with this run mode
type Stats ¶
type Stats struct { }
Stats is a type of run mode allowing to print TCR execution stats
func (Stats) AutoPushDefault ¶
AutoPushDefault returns the default value of git auto-push option with this run mode
func (Stats) IsInteractive ¶
IsInteractive indicates if this run mode allows user interaction
func (Stats) NeedsCountdownTimer ¶
NeedsCountdownTimer indicates if a countdown timer is needed with this run mode