Documentation
¶
Index ¶
- Constants
- Variables
- type Branch
- type Branches
- type BranchesQuery
- type CheckoutCommand
- type LoglQuery
- type Manager
- func (m *Manager) Checkout(ctx context.Context, cmd CheckoutCommand) error
- func (m *Manager) Clone(repoURL string, target string, dir string) error
- func (m *Manager) DirectoryHasOrigin(dir string, origin string) (bool, error)
- func (m *Manager) GetCurrentBranch(dir string) (string, error)
- func (m *Manager) GetRepositoryRootFromPath(path string) (string, error)
- func (m *Manager) Logl(_ context.Context, query LoglQuery) error
- func (m *Manager) Pull(ctx context.Context, cmd PullCommand) error
- func (m *Manager) PullBranch(dto PullBranchOpts) error
- func (m *Manager) Push(ctx context.Context, cmd PushCommand) error
- func (m *Manager) PushBranch(cmd PushBranchOpts) error
- func (m *Manager) RebaseInteractively(_ context.Context, cmd RebaseInteractivelyCommand) error
- func (m *Manager) ShowBranches(_ context.Context, query BranchesQuery) error
- func (m *Manager) Status(ctx context.Context, query StatusQuery) error
- func (m *Manager) UndoLastXCommits(_ context.Context, cmd UndoLastXCommitsCommand) error
- type PullBranchOpts
- type PullCommand
- type PushBranchOpts
- type PushCommand
- type RebaseInteractivelyCommand
- type StatusQuery
- type UndoLastXCommitsCommand
Constants ¶
View Source
const ConfirmNo = "No"
View Source
const ConfirmYes = "Yes"
Variables ¶
Functions ¶
This section is empty.
Types ¶
type Branches ¶
type Branches []Branch
func (Branches) ExcludeCurrent ¶
func (Branches) GetCurrent ¶
func (Branches) StrictSearch ¶
type BranchesQuery ¶ added in v0.17.1
func (BranchesQuery) MessageName ¶ added in v0.17.1
func (BranchesQuery) MessageName() string
type CheckoutCommand ¶ added in v0.17.1
type CheckoutCommand struct {
bus.Returns[bus.Void]
Name string
AllProjects bool
Workspace string
Project string
Pull bool
Rebase bool
Create bool
}
func (CheckoutCommand) MessageName ¶ added in v0.17.1
func (CheckoutCommand) MessageName() string
type LoglQuery ¶ added in v0.17.1
type LoglQuery struct {
bus.Returns[bus.Void]
// The amount of commits to show
Amount int
// The directory to run the command in, defaults to the current directory
Dir string
}
func (LoglQuery) MessageName ¶ added in v0.17.1
type Manager ¶ added in v0.17.1
type Manager struct {
// contains filtered or unexported fields
}
func NewManager ¶ added in v0.17.1
func NewManager(exec executor, tui tui) *Manager
func (*Manager) Checkout ¶ added in v0.17.1
func (m *Manager) Checkout(ctx context.Context, cmd CheckoutCommand) error
func (*Manager) DirectoryHasOrigin ¶ added in v0.17.1
func (*Manager) GetCurrentBranch ¶ added in v0.17.1
func (*Manager) GetRepositoryRootFromPath ¶ added in v0.17.1
func (*Manager) Pull ¶ added in v0.17.1
func (m *Manager) Pull(ctx context.Context, cmd PullCommand) error
func (*Manager) PullBranch ¶ added in v0.17.1
func (m *Manager) PullBranch(dto PullBranchOpts) error
func (*Manager) Push ¶ added in v0.17.1
func (m *Manager) Push(ctx context.Context, cmd PushCommand) error
func (*Manager) PushBranch ¶ added in v0.17.1
func (m *Manager) PushBranch(cmd PushBranchOpts) error
func (*Manager) RebaseInteractively ¶ added in v0.17.1
func (m *Manager) RebaseInteractively(_ context.Context, cmd RebaseInteractivelyCommand) error
func (*Manager) ShowBranches ¶ added in v0.17.1
func (m *Manager) ShowBranches(_ context.Context, query BranchesQuery) error
func (*Manager) Status ¶ added in v0.17.1
func (m *Manager) Status(ctx context.Context, query StatusQuery) error
func (*Manager) UndoLastXCommits ¶ added in v0.17.1
func (m *Manager) UndoLastXCommits(_ context.Context, cmd UndoLastXCommitsCommand) error
type PullBranchOpts ¶ added in v0.17.1
type PullCommand ¶ added in v0.17.1
type PullCommand struct {
bus.Returns[bus.Void]
AllProjects bool
Workspace string
Project string
Rebase bool
}
func (PullCommand) MessageName ¶ added in v0.17.1
func (PullCommand) MessageName() string
type PushBranchOpts ¶ added in v0.17.1
type PushCommand ¶ added in v0.17.1
type PushCommand struct {
bus.Returns[bus.Void]
AllProjects bool
Workspace string
Project string
Force bool
}
func (PushCommand) MessageName ¶ added in v0.17.1
func (PushCommand) MessageName() string
type RebaseInteractivelyCommand ¶ added in v0.17.1
type RebaseInteractivelyCommand struct {
bus.Returns[bus.Void]
// The amount of commits to include in the rebase
Amount int
// The directory to run the command in, defaults to the current directory
Dir string
}
func (RebaseInteractivelyCommand) MessageName ¶ added in v0.17.1
func (RebaseInteractivelyCommand) MessageName() string
type StatusQuery ¶ added in v0.17.1
func (StatusQuery) MessageName ¶ added in v0.17.1
func (StatusQuery) MessageName() string
type UndoLastXCommitsCommand ¶ added in v0.17.1
type UndoLastXCommitsCommand struct {
bus.Returns[bus.Void]
// The amount of commits to remoe
Amount int
SkipConfirmation bool
// The directory to run the command in, defaults to the current directory
Dir string
}
func (UndoLastXCommitsCommand) MessageName ¶ added in v0.17.1
func (UndoLastXCommitsCommand) MessageName() string
Click to show internal directories.
Click to hide internal directories.