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 DbCmd = &cobra.Command{ Use: "db [database]", Short: "Display detected databases and their information", Long: `Display detected database management systems (DBMS) and their information. Shows database clients, versions, running status, and database files. Examples: allbctl status db # Show all detected databases allbctl status db sqlite3 # Show only SQLite3 info allbctl status db postgres # Show only PostgreSQL info allbctl status db --detail # Show detailed info for all databases allbctl status db sqlite3 --detail # Show detailed SQLite3 info with .db files`, Run: func(cmd *cobra.Command, args []string) { if len(args) > 0 { dbName := args[0] showDatabaseInfo(dbName, dbDetailFlag) } else { showAllDatabases(dbDetailFlag) } }, }
DbCmd represents the db command
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. By default, shows the same summary as the 'Packages:' section in 'allbctl status'. 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 the same summary as the 'Projects:' section in 'allbctl status'. Dirty repos are marked with an asterisk (*). Examples: allbctl status projects # Show summary (default, same as status) allbctl status projects --all # Show all repos allbctl status projects --dirty # Show only dirty repos allbctl status projects --clean # Show only clean repos`, Run: func(cmd *cobra.Command, args []string) { if allFlag || dirtyFlag || cleanFlag { printProjectsSummary() } else { printProjectsInline() } }, }
ProjectsCmd represents the projects command
View Source
var RuntimesCmd = &cobra.Command{ Use: "runtimes", Short: "Display detected runtimes and their versions", Long: `Display detected programming language runtimes and their versions. This is the same output shown in the 'Runtimes:' section of 'allbctl status'.`, Run: func(cmd *cobra.Command, args []string) { PrintRuntimes() }, }
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 ¶
func PrintDatabaseSummaryForStatus ¶ added in v0.0.22
func PrintDatabaseSummaryForStatus()
PrintDatabaseSummaryForStatus prints a one-line summary for the main status command
func PrintPackageSummary ¶ added in v0.0.21
func PrintPackageSummary()
PrintPackageSummary prints package counts for all detected package managers (for status command)
func PrintRuntimes ¶ added in v0.0.21
func PrintRuntimes()
PrintRuntimes outputs the runtimes in inline format (same as status command)
Types ¶
type BrowserInfo ¶ added in v0.0.18
BrowserInfo holds browser information
type CPUDetails ¶ added in v0.0.18
type CPUDetails struct {
ModelName string
Architecture string
Cores int
ThreadsPerCore int
CoresPerSocket int
Sockets int
PhysicalCores int
LogicalCores int
BaseClock string
PCores int
ECores int
HasPECores bool
}
CPUDetails holds detailed CPU information
type DatabaseInfo ¶ added in v0.0.22
type GPUInfo ¶ added in v0.0.18
type GPUInfo struct {
Name string
Vendor string
Memory string
Driver string
ComputeCap string
ClockGraphics string
ClockMemory string
}
GPUInfo holds detailed GPU information
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.