dodot

package
v0.3.0 Latest Latest
Warning

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

Go to latest
Published: Sep 6, 2025 License: MIT Imports: 33 Imported by: 0

Documentation

Index

Constants

View Source
const (
	// Root command description
	MsgRootShort = "A stateless dotfiles manager"

	// Error messages
	MsgErrInitPaths = "failed to initialize paths: %w"

	// Flag descriptions
	MsgFlagVerbose = "Increase verbosity (-v INFO, -vv DEBUG, -vvv TRACE)"
	MsgFlagDryRun  = "Preview changes without executing them"
	MsgFlagForce   = "Force execution of run-once handlers even if already executed"

	// Debug messages
	MsgDebugDotfilesRoot = "Debug: Using dotfiles root: %s (fallback=%v)\n"
)

General messages (not command-specific)

Variables

View Source
var (
	// Status command
	MsgStatusShort    = status.MsgShort
	MsgErrStatusPacks = status.MsgErrStatusPacks

	// Init command
	MsgInitShort   = initcmd.MsgShort
	MsgErrInitPack = initcmd.MsgErrInitPack

	// Fill command
	MsgFillShort   = fill.MsgShort
	MsgErrFillPack = fill.MsgErrFillPack

	// Adopt command
	MsgAdoptShort    = adopt.MsgShort
	MsgErrAdoptFiles = adopt.MsgErrAdoptFiles

	// Add-ignore command
	MsgAddIgnoreShort = addignore.MsgShort
	MsgErrAddIgnore   = addignore.MsgErrAddIgnore

	// Topics command
	MsgTopicsShort = topics.MsgShort
	MsgTopicsLong  = topics.MsgLong

	// Snippet command
	MsgSnippetShort = snippet.MsgShort

	// Gen-config command
	MsgGenConfigShort = genconfig.MsgShort
)

Re-export command messages for backward compatibility

View Source
var (
	MsgRootLong = strings.TrimSpace(msgRootLongRaw)

	MsgFallbackWarning = strings.TrimSpace(msgFallbackWarningRaw)

	MsgUsageTemplate = strings.TrimSpace(msgUsageTemplateRaw)
)

Embedded message files for general messages

Functions

func NewRootCmd

func NewRootCmd() *cobra.Command

NewRootCmd creates and returns the root command

Types

This section is empty.

Directories

Path Synopsis
commands
up
internal
topics
Package topics provides a pluggable, topic-based help system for Cobra CLI applications.
Package topics provides a pluggable, topic-based help system for Cobra CLI applications.

Jump to

Keyboard shortcuts

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