profile

package
v1.3.2 Latest Latest
Warning

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

Go to latest
Published: May 7, 2026 License: MIT Imports: 12 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var ActivateCommand = cli.Command{
	Name:   "activate",
	Hidden: true,
	Usage:  "Auto-activate the profile for the current directory (used by shell hooks)",
	Flags: []cli.Flag{
		&cli.BoolFlag{
			Name:  "silent",
			Usage: "Suppress all output",
		},
	},
	Action: activateProfile,
}
View Source
var AddCommand = cli.Command{
	Name:      "add",
	Usage:     "Add a new profile",
	ArgsUsage: "<profile-name>",
	Action:    addProfile,
}
View Source
var DefaultCommand = cli.Command{
	Name:      "default",
	Usage:     "Set the default profile used when no path mapping matches",
	ArgsUsage: "<profile-name>",
	Flags: []cli.Flag{
		&cli.BoolFlag{
			Name:  "clear",
			Usage: "Unset the default profile",
		},
	},
	Action: setDefault,
}
View Source
var DeleteCommand = cli.Command{
	Name:      "delete",
	Aliases:   []string{"remove"},
	Usage:     "Delete a profile",
	ArgsUsage: "<profile-name>",
	Action:    deleteProfile,
}
View Source
var EditCommand = cli.Command{
	Name:      "edit",
	Usage:     "Edit an existing profile's name and email",
	ArgsUsage: "<profile-name>",
	Action:    editProfile,
}
View Source
var KeysCommand = cli.Command{
	Name:      "keys",
	Usage:     "Show SSH keys for a profile",
	ArgsUsage: "<profile-name>",
	Action:    showKeys,
}
View Source
var ListCommand = cli.Command{
	Name:   "list",
	Usage:  "List all profiles",
	Action: listProfiles,
}
View Source
var MapGroupCommand = cli.Command{
	Name:  "map",
	Usage: "Manage folder path mappings for auto-activation",
	Commands: []*cli.Command{
		{
			Name:      "add",
			Usage:     "Map a folder path to a profile",
			ArgsUsage: "<profile-name> <path>",
			Action:    mapAdd,
		},
		{
			Name:      "remove",
			Usage:     "Remove a folder path mapping",
			ArgsUsage: "<path>",
			Action:    mapRemove,
		},
		{
			Name:   "list",
			Usage:  "List all folder path mappings",
			Action: mapList,
		},
	},
}
View Source
var UseCommand = cli.Command{
	Name:      "use",
	Usage:     "Activate a profile globally (git identity + SSH keys)",
	ArgsUsage: "<profile-name>",
	Action:    useProfile,
}

Functions

This section is empty.

Types

This section is empty.

Jump to

Keyboard shortcuts

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