Documentation ¶
Index ¶
- func BranchName(cmd *cobra.Command, args []string)
- func Cleanup(cmd *cobra.Command, args []string)
- func CommitAllWithTask(cmd *cobra.Command, args []string)
- func CommitWithTask(cmd *cobra.Command, args []string)
- func Delete(cmd *cobra.Command, branches []string)
- func FullBranchName(cmd *cobra.Command, args []string)
- func FullSha(cmd *cobra.Command, args []string)
- func InitCLI() *cobra.Command
- func IsDirty(cmd *cobra.Command, args []string)
- func IsRepository(cmd *cobra.Command, args []string)
- func PullRequestURL(cmd *cobra.Command, args []string)
- func Push(cmd *cobra.Command, args []string)
- func Reset(cmd *cobra.Command, args []string)
- func Sha(cmd *cobra.Command, args []string)
- func ShowRemotes(cmd *cobra.Command, args []string)
- func Summary(cmd *cobra.Command, args []string)
- func Task(cmd *cobra.Command, args []string)
- func Update(cmd *cobra.Command, args []string)
- func WorkflowDeleteRelease(cmd *cobra.Command, args []string)
- func WorkflowFastCommit(cmd *cobra.Command, args []string)
- func WorkflowFastPullRequest(cmd *cobra.Command, args []string)
- func WorkflowFinish(cmd *cobra.Command, args []string)
- func WorkflowFinishRelease(cmd *cobra.Command, args []string)
- func WorkflowFullFinish(cmd *cobra.Command, args []string)
- func WorkflowFullFinishRelease(cmd *cobra.Command, args []string)
- func WorkflowImport(cmd *cobra.Command, args []string)
- func WorkflowImportRelease(cmd *cobra.Command, args []string)
- func WorkflowPullRequest(cmd *cobra.Command, args []string)
- func WorkflowRefresh(cmd *cobra.Command, args []string)
- func WorkflowRefreshRelease(cmd *cobra.Command, args []string)
- func WorkflowRelease(cmd *cobra.Command, args []string)
- func WorkflowStart(cmd *cobra.Command, args []string)
- func WorkflowStartRelease(cmd *cobra.Command, args []string)
- type Configuration
- type ExecutionResult
- type Remote
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func BranchName ¶
BranchName shows the full current branch name
func CommitAllWithTask ¶
CommitAllWithTask commits all changes with the task name
func CommitWithTask ¶
CommitWithTask commits changes with the task name
func FullBranchName ¶
FullBranchName shows the full current branch name
func IsRepository ¶
IsRepository checks if the current working directory is a GIT repository
func PullRequestURL ¶
PullRequestURL shows a pull request URL
func ShowRemotes ¶
ShowRemotes lists all the remotes for the current GIT Repository
func Summary ¶
Summary shows the current branch name, the current SHA and whether the working directory is dirty
func WorkflowDeleteRelease ¶
WorkflowDeleteRelease deletes a release branch locally and remotely.
func WorkflowFastCommit ¶
WorkflowFastCommit creates a local branch, commit changes and then merges it back to the base branch.
func WorkflowFastPullRequest ¶
WorkflowFastPullRequest creates a local branch, commit changes and then sends a Pull Request, deleting the local branch at the end.
func WorkflowFinish ¶
WorkflowFinish merges a branch back to its base remote branch.
func WorkflowFinishRelease ¶
WorkflowFinishRelease merges a branch back to its base remote release branch.
func WorkflowFullFinish ¶
WorkflowFullFinish merges a branch back to its base remote branch and then deletes the local copy.
func WorkflowFullFinishRelease ¶
WorkflowFullFinishRelease merges a branch back to its base remote release branch and then deletes the local copy.
func WorkflowImport ¶
WorkflowImport imports latest changes to a local branch on top of an existing remote branch.
func WorkflowImportRelease ¶
WorkflowImportRelease imports latest changes to a local branch on top of an existing remote release branch.
func WorkflowPullRequest ¶
WorkflowPullRequest sends a Pull Request and deletes the local branch.
func WorkflowRefresh ¶
WorkflowRefresh rebases the current branch on top of an existing remote branch
func WorkflowRefreshRelease ¶
WorkflowRefreshRelease rebases the current branch on top of an existing remote release branch.
func WorkflowRelease ¶
WorkflowRelease tags and pushes a new release branch out of the base one.
func WorkflowStart ¶
WorkflowStart starts a new branch out of the base one
func WorkflowStartRelease ¶
WorkflowStartRelease starts a new branch out of a remote release branch.
Types ¶
type Configuration ¶
type Configuration struct { DefaultBranch string `json:"defaultBranch"` DefaultRemote string `json:"defaultRemote"` DefaultPrefix string `json:"defaultPrefix"` OpenPath string `json:"openPath"` PrependTask bool `json:"prependTask"` Quiet bool `json:"quiet"` Debug bool `json:"debug"` DryRun bool `json:"dryRun"` TaskMatchers []string `json:"taskMatchers"` }
Configuration represents the Fishamnium GIT configuration
type ExecutionResult ¶
ExecutionResult represents a command execution result
func (ExecutionResult) Success ¶
func (t ExecutionResult) Success() bool
Success checks whether the command was executed and exited with status 0
type Remote ¶
Remote represent a GIT Remote
func (Remote) MarshalJSON ¶
MarshalJSON serializes a Remote as JSON