Documentation
¶
Index ¶
- func NewCmdExtension(f *cmdutil.Factory) *cobra.Command
- type Extension
- 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 config.Config)
- func (m *Manager) Upgrade(name string, force bool) error
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
Types ¶
type Extension ¶
type Extension struct {
// contains filtered or unexported fields
}
func (*Extension) CurrentVersion ¶ added in v2.6.0
func (*Extension) UpdateAvailable ¶
type Manager ¶
type Manager struct {
// contains filtered or unexported fields
}
func NewManager ¶
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
Click to show internal directories.
Click to hide internal directories.