cmd

package
v0.0.21 Latest Latest
Warning

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

Go to latest
Published: Jan 1, 2026 License: Apache-2.0 Imports: 21 Imported by: 0

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.

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 Execute

func Execute()

Execute comment for execute

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 AIAgent added in v0.0.14

type AIAgent struct {
	Name    string
	Version string
}

AIAgent represents an AI coding assistant

type BrowserInfo added in v0.0.18

type BrowserInfo struct {
	Name    string
	Version string
}

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 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 RuntimeCheck struct {
	Command  []string
	Category string
}

type RuntimeInfo added in v0.0.13

type RuntimeInfo struct {
	Name     string
	Version  string
	Category string
}

Jump to

Keyboard shortcuts

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