Documentation ¶
Index ¶
- Variables
- func NewCmdExtension(f *cmdutil.Factory) *cobra.Command
- type Extension
- func (e *Extension) CurrentVersion() string
- func (e *Extension) IsBinary() bool
- func (e *Extension) IsLocal() bool
- func (e *Extension) IsPinned() bool
- func (e *Extension) LatestVersion() string
- func (e *Extension) Name() string
- func (e *Extension) Owner() string
- func (e *Extension) Path() string
- func (e *Extension) URL() string
- func (e *Extension) UpdateAvailable() bool
- type ExtensionKind
- type Manager
- func (m *Manager) Create(name string, tmplType extensions.ExtTemplateType) error
- func (m *Manager) Dispatch(args []string, stdin io.Reader, stdout, stderr io.Writer) (bool, error)
- func (m *Manager) EnableDryRunMode()
- func (m *Manager) Install(repo ghrepo.Interface, target string) error
- func (m *Manager) InstallLocal(dir string) error
- func (m *Manager) List() []extensions.Extension
- func (m *Manager) Remove(name string) error
- func (m *Manager) SetClient(client *http.Client)
- func (m *Manager) SetConfig(cfg gh.Config)
- func (m *Manager) Upgrade(name string, force bool) error
Constants ¶
This section is empty.
Variables ¶
View Source
var ErrInitialCommitFailed = errors.New("initial commit failed")
ErrInitialCommitFailed indicates the initial commit when making a new extension failed.
Functions ¶
Types ¶
type Extension ¶
type Extension struct {
// contains filtered or unexported fields
}
func (*Extension) CurrentVersion ¶ added in v2.6.0
func (*Extension) LatestVersion ¶ added in v2.31.0
func (*Extension) UpdateAvailable ¶
type ExtensionKind ¶
type ExtensionKind int
const ( GitKind ExtensionKind = iota BinaryKind LocalKind )
type Manager ¶
type Manager struct {
// contains filtered or unexported fields
}
func (*Manager) Create ¶
func (m *Manager) Create(name string, tmplType extensions.ExtTemplateType) error
func (*Manager) EnableDryRunMode ¶ added in v2.8.0
func (m *Manager) EnableDryRunMode()
func (*Manager) Install ¶
Install installs an extension from repo, and pins to commitish if provided
func (*Manager) InstallLocal ¶
func (*Manager) List ¶
func (m *Manager) List() []extensions.Extension
Source Files ¶
Click to show internal directories.
Click to hide internal directories.