Documentation
¶
Index ¶
- Variables
- func AddCmd(cfg *config.Config) *cobra.Command
- func AliasCmd(cfg *config.Config) *cobra.Command
- func BottomCmd(cfg *config.Config) *cobra.Command
- func CheckoutCmd(cfg *config.Config) *cobra.Command
- func DownCmd(cfg *config.Config) *cobra.Command
- func Execute()
- func FeedbackCmd(cfg *config.Config) *cobra.Command
- func InitCmd(cfg *config.Config) *cobra.Command
- func MergeCmd(cfg *config.Config) *cobra.Command
- func PushCmd(cfg *config.Config) *cobra.Command
- func RebaseCmd(cfg *config.Config) *cobra.Command
- func RootCmd() *cobra.Command
- func SubmitCmd(cfg *config.Config) *cobra.Command
- func SyncCmd(cfg *config.Config) *cobra.Command
- func TopCmd(cfg *config.Config) *cobra.Command
- func UnstackCmd(cfg *config.Config) *cobra.Command
- func UpCmd(cfg *config.Config) *cobra.Command
- func ViewCmd(cfg *config.Config) *cobra.Command
- type ExitError
Constants ¶
This section is empty.
Variables ¶
View Source
var ( ErrNotInStack = &ExitError{Code: 2} // branch/stack not found ErrConflict = &ExitError{Code: 3} // rebase conflict ErrAPIFailure = &ExitError{Code: 4} // GitHub API error ErrInvalidArgs = &ExitError{Code: 5} // invalid arguments or flags ErrDisambiguate = &ExitError{Code: 6} // multiple stacks/remotes, can't auto-select ErrRebaseActive = &ExitError{Code: 7} // rebase already in progress ErrLockFailed = &ExitError{Code: 8} // could not acquire stack file lock )
Typed exit errors for programmatic detection by scripts and agents.
View Source
var ErrSilent = &ExitError{Code: 1}
ErrSilent indicates the error has already been printed to the user. Execute() will exit with code 1 but will not print the error again.
View Source
var Version = "dev"
Version is the current version of gh-stack. In release builds, this is overridden at build time via ldflags (see .github/workflows/release.yml). The "dev" default indicates a local development build.
Functions ¶
Types ¶
Click to show internal directories.
Click to hide internal directories.