Documentation
¶
Overview ¶
SPDX-License-Identifier: Apache-2.0
SPDX-License-Identifier: Apache-2.0
SPDX-License-Identifier: Apache-2.0
SPDX-License-Identifier: Apache-2.0
SPDX-License-Identifier: Apache-2.0
SPDX-License-Identifier: Apache-2.0
SPDX-License-Identifier: Apache-2.0
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func GetInitCmd ¶
GetInitCmd returns the cobra command for the init subcommand. This is the exported entry point used by cmd/root.go.
Types ¶
type GenerationCompleteMsg ¶
GenerationCompleteMsg signals file generation finished
type InitFlags ¶
type InitFlags struct {
KeyName string
KeyEmail string
KeyExpiry string
KeyFormat string
HistoryFormat string
ArchiveLocation string
}
InitFlags holds the CLI flags for non-interactive mode
type KeygenTab ¶
type KeygenTab struct {
// contains filtered or unexported fields
}
KeygenTab handles auto-generation of encrypted signing key
func NewKeygenTab ¶
func NewKeygenTab(settings *initpkg.InitSettings) *KeygenTab
NewKeygenTab creates a new key generation tab
func (*KeygenTab) Init ¶
Init implements TabModel interface Auto-generates signing key using async message flow
func (*KeygenTab) IsComplete ¶
IsComplete implements TabModel interface
type SettingsUpdateMsg ¶
type SettingsUpdateMsg struct {
Settings initpkg.InitSettings
}
SettingsUpdateMsg carries settings from a tab to parent
type SummaryTab ¶
type SummaryTab struct {
// contains filtered or unexported fields
}
SummaryTab handles final file generation
func NewSummaryTab ¶
func NewSummaryTab(settings *initpkg.InitSettings) *SummaryTab
NewSummaryTab creates a new summary tab
func (*SummaryTab) GetState ¶
func (t *SummaryTab) GetState() ui.TabState
GetState implements TabModel interface
func (*SummaryTab) Init ¶
func (t *SummaryTab) Init() tea.Cmd
Init implements TabModel interface Auto-generates repository files using async message flow
func (*SummaryTab) IsComplete ¶
func (t *SummaryTab) IsComplete() bool
IsComplete implements TabModel interface
func (*SummaryTab) Update ¶
func (t *SummaryTab) Update(msg tea.Msg) (*SummaryTab, tea.Cmd)
Update implements TabModel interface
type TabCompleteMsg ¶
type TabCompleteMsg struct {
TabIndex int
}
TabCompleteMsg signals a tab has completed
type TabErrorMsg ¶
TabErrorMsg carries error from a tab to parent
type WizardModel ¶
type WizardModel struct {
// contains filtered or unexported fields
}
WizardModel orchestrates the init tabs (Key Gen + Summary). Signing config is collected via standalone huh form before this runs.
func NewWizardModel ¶
func NewWizardModel(settings *initpkg.InitSettings) WizardModel
NewWizardModel creates the init wizard with pre-collected settings.
func (WizardModel) Init ¶
func (m WizardModel) Init() tea.Cmd
func (WizardModel) View ¶
func (m WizardModel) View() tea.View