dodot

package
v0.1.4 Latest Latest
Warning

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

Go to latest
Published: Aug 13, 2025 License: MIT Imports: 20 Imported by: 0

Documentation

Index

Constants

View Source
const (
	// Command descriptions
	MsgRootShort       = "A stateless dotfiles manager"
	MsgDeployShort     = "Deploy dotfiles to the system"
	MsgInstallShort    = "Install and deploy dotfiles to the system"
	MsgListShort       = "List all available packs"
	MsgListLong        = "List displays all packs found in your DOTFILES_ROOT directory."
	MsgStatusShort     = "Show deployment status of packs"
	MsgInitShort       = "Create a new pack with template files"
	MsgFillShort       = "Add placeholder files to an existing pack"
	MsgTopicsShort     = "Display available documentation topics"
	MsgTopicsLong      = "Display a list of all available help topics that provide additional documentation beyond command help."
	MsgCompletionShort = "Generate shell completion script"
	MsgSnippetShort    = "Output shell integration snippet"

	// Status messages
	MsgDryRunNotice      = "\nDRY RUN MODE - No changes were made"
	MsgNoOperations      = "No operations needed."
	MsgOperationsFormat  = "\nPerformed %d operations:\n"
	MsgOperationItem     = "  ✓ %s\n"
	MsgNoPacksFound      = "No packs found."
	MsgAvailablePacks    = "Available packs:"
	MsgPackItem          = "  %s\n"
	MsgPackCreatedFormat = "Created pack '%s' with the following files:\n"
	MsgPackFilledFormat  = "Added the following files to pack '%s':\n"
	MsgPackHasAllFiles   = "Pack '%s' already has all standard files.\n"
	MsgPackStatusFormat  = "\n%s:\n"
	MsgPowerUpStatus     = "  %s: %s"
	MsgPowerUpDesc       = " - %s"

	// Error messages
	MsgErrInitPaths    = "failed to initialize paths: %w"
	MsgErrDeployPacks  = "failed to deploy packs: %w"
	MsgErrInstallPacks = "failed to install packs: %w"
	MsgErrListPacks    = "failed to list packs: %w"
	MsgErrStatusPacks  = "failed to get pack status: %w"
	MsgErrInitPack     = "failed to initialize pack: %w"
	MsgErrFillPack     = "failed to fill pack: %w"

	// Flag descriptions
	MsgFlagVerbose = "Increase verbosity (-v INFO, -vv DEBUG, -vvv TRACE)"
	MsgFlagDryRun  = "Preview changes without executing them"
	MsgFlagForce   = "Force execution of run-once power-ups even if already executed"
	MsgFlagType    = "Type of pack to create (basic, shell, vim, etc.)"

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

Short messages (one-liners)

Variables

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

	MsgDeployLong = strings.TrimSpace(msgDeployLongRaw)

	MsgDeployExample = strings.TrimSpace(msgDeployExampleRaw)

	MsgInstallLong = strings.TrimSpace(msgInstallLongRaw)

	MsgInstallExample = strings.TrimSpace(msgInstallExampleRaw)

	MsgListExample = strings.TrimSpace(msgListExampleRaw)

	MsgStatusLong = strings.TrimSpace(msgStatusLongRaw)

	MsgStatusExample = strings.TrimSpace(msgStatusExampleRaw)

	MsgInitLong = strings.TrimSpace(msgInitLongRaw)

	MsgInitExample = strings.TrimSpace(msgInitExampleRaw)

	MsgFillLong = strings.TrimSpace(msgFillLongRaw)

	MsgFillExample = strings.TrimSpace(msgFillExampleRaw)

	MsgFallbackWarning = strings.TrimSpace(msgFallbackWarningRaw)

	MsgUsageTemplate = strings.TrimSpace(msgUsageTemplateRaw)

	MsgCompletionLong = strings.TrimSpace(msgCompletionLongRaw)

	MsgSnippetLong = strings.TrimSpace(msgSnippetLongRaw)

	MsgSnippetExample = strings.TrimSpace(msgSnippetExampleRaw)
)

Long messages from embedded files

Functions

func NewRootCmd

func NewRootCmd() *cobra.Command

NewRootCmd creates and returns the root command

Types

This section is empty.

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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