cmd

package
v1.4.3 Latest Latest
Warning

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

Go to latest
Published: Apr 18, 2026 License: MIT Imports: 36 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var RootCmd = &cobra.Command{
	Use:     "alpacon",
	Aliases: []string{"ac"},
	Short:   "Access infrastructure securely with Alpacon",
	Long: `Alpacon CLI provides secure access to remote servers without SSH keys, VPNs,
or bastion hosts. Open terminals, execute commands, transfer files, create TCP
tunnels, and manage certificates — all with zero-trust authentication, MFA,
session recording, and role-based access controls.

Designed to be used by engineers, AI coding agents, and CI/CD platforms alike.`,
	PersistentPreRunE: func(cmd *cobra.Command, args []string) error {
		switch utils.OutputFormat {
		case utils.OutputFormatTable, utils.OutputFormatJSON:
			return nil
		default:
			return fmt.Errorf("invalid --output value %q (expected %q or %q)",
				utils.OutputFormat, utils.OutputFormatTable, utils.OutputFormatJSON)
		}
	},
	Run: func(cmd *cobra.Command, args []string) {
		utils.ShowLogo()
		fmt.Fprintln(os.Stderr, "Welcome to Alpacon CLI! Use 'alpacon [command]' to execute a specific command or 'alpacon help' to see all available commands.")
	},
}

Functions

func Execute

func Execute()

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