init

package
v0.0.0-...-c2d8862 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Oct 25, 2026 License: Apache-2.0 Imports: 18 Imported by: 1 module, 0 packages

The first number is the count of modules that contain a package that imports this one. The module count is a better indicator of popularity than the package count. A module with 100 importing packages is counted only once instead of 100 times, reflecting the fact that the choice to use the package was likely made only once, not 100 times.
A '?' means that the value hasn't been computed yet.

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

func GetInitCmd() *cobra.Command

GetInitCmd returns the cobra command for the init subcommand. This is the exported entry point used by cmd/root.go.

Types

type GenerationCompleteMsg

type GenerationCompleteMsg struct {
	FilesCreated []string
	Error        error
}

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) GetState

func (t *KeygenTab) GetState() ui.TabState

GetState implements TabModel interface

func (*KeygenTab) Init

func (t *KeygenTab) Init() tea.Cmd

Init implements TabModel interface Auto-generates signing key using async message flow

func (*KeygenTab) IsComplete

func (t *KeygenTab) IsComplete() bool

IsComplete implements TabModel interface

func (*KeygenTab) Update

func (t *KeygenTab) Update(msg tea.Msg) (*KeygenTab, tea.Cmd)

Update implements TabModel interface

func (*KeygenTab) View

func (t *KeygenTab) View() string

View 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

func (*SummaryTab) View

func (t *SummaryTab) View() string

View implements TabModel interface

type TabCompleteMsg

type TabCompleteMsg struct {
	TabIndex int
}

TabCompleteMsg signals a tab has completed

type TabErrorMsg

type TabErrorMsg struct {
	TabIndex int
	Error    error
}

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) Update

func (m WizardModel) Update(msg tea.Msg) (tea.Model, tea.Cmd)

func (WizardModel) View

func (m WizardModel) View() tea.View

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL