Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
View Source
var ( Version = "dev" Commit = "unknown" )
View Source
var BootstrapCmd = &cobra.Command{ Use: "bootstrap", Aliases: []string{ "bs", }, Short: "Manage workstation bootstrap configuration", Long: `Manage workstation bootstrap configuration including directories, tools, SSH keys, and dotfiles. Available subcommands: status - Check current bootstrap status install - Apply bootstrap configuration to setup this machine reset - Reset bootstrap configuration`, Run: func(cmd *cobra.Command, args []string) { cmd.Help() }, }
View Source
var ListPackagesCmd = &cobra.Command{ Use: "list-packages [package-manager]", Short: "Show package count summary from all detected package managers", Long: `Show package count summary from all detected package managers. For system package managers (apt, yum, brew, chocolatey, etc.), only explicitly installed packages are counted, not their dependencies. For programming runtime package managers (npm, pip, gem, etc.), only globally installed packages are counted. If a package manager is not detected on the system, it will not be displayed. Use --detail flag to see the full list of all installed packages. You can also specify a specific package manager to list only its packages: allbctl list-packages apt allbctl list-packages npm allbctl list-packages flatpak`, Run: func(cmd *cobra.Command, args []string) { listInstalledPackages(args) }, }
ListPackagesCmd represents the list-packages command
View Source
var ProjectsCmd = &cobra.Command{ Use: "projects", Short: "Display git repositories in ~/src", Long: `Display a summary of git repositories found in ~/src directory. By default, shows a count and the last 5 recently touched repos. Dirty repos are marked with an asterisk (*). Examples: allbctl projects # Show summary (default) allbctl projects --all # Show all repos allbctl projects --dirty # Show only dirty repos allbctl projects --clean # Show only clean repos`, Run: func(cmd *cobra.Command, args []string) { printProjectsSummary() }, }
ProjectsCmd represents the projects command
View Source
var RuntimesCmd = &cobra.Command{ Use: "runtimes", Short: "Detects programmer development environment runtimes and displays their versions.", Run: func(cmd *cobra.Command, args []string) { found := false for name, cmdArgs := range runtimeCommands { c := exec.Command(cmdArgs[0], cmdArgs[1:]...) output, err := c.CombinedOutput() if err == nil { fmt.Printf("%s: %s\n", name, parseVersion(string(output))) found = true } } if !found { fmt.Println("No known runtimes detected.") } }, }
View Source
var StatusCmd = &cobra.Command{ Use: "status", Short: "Display system information (like neofetch)", Run: func(cmd *cobra.Command, args []string) { printSystemInfo() }, }
StatusCmd represents status command
Functions ¶
Types ¶
type RepoInfo ¶ added in v0.0.15
type RepoInfo struct {
Path string
ModTime time.Time
Dirty bool
RemoteRepo string // e.g., "aallbrig/allbctl" or "godotengine/godot"
}
RepoInfo contains information about a git repository
type RuntimeCheck ¶ added in v0.0.13
type RuntimeInfo ¶ added in v0.0.13
Click to show internal directories.
Click to hide internal directories.