Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
7 changes: 4 additions & 3 deletions cmd/browsers.go
Original file line number Diff line number Diff line change
Expand Up @@ -1738,9 +1738,10 @@ func generateRandomExtensionName() string {
}

var browsersCmd = &cobra.Command{
Use: "browsers",
Short: "Manage browsers",
Long: "Commands for managing Kernel browsers",
Use: "browsers",
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

should we go crazy and also alias "b" ... as a power user i'd probably use it

Aliases: []string{"browser"},
Short: "Manage browsers",
Long: "Commands for managing Kernel browsers",
}

var browsersListCmd = &cobra.Command{
Expand Down
7 changes: 4 additions & 3 deletions cmd/extensions.go
Original file line number Diff line number Diff line change
Expand Up @@ -310,9 +310,10 @@ func (e ExtensionsCmd) Upload(ctx context.Context, in ExtensionsUploadInput) err
// --- Cobra wiring ---

var extensionsCmd = &cobra.Command{
Use: "extensions",
Short: "Manage browser extensions",
Long: "Commands for managing Kernel browser extensions",
Use: "extensions",
Aliases: []string{"extension"},
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

also "ext"?

Short: "Manage browser extensions",
Long: "Commands for managing Kernel browser extensions",
}

var extensionsListCmd = &cobra.Command{
Expand Down
9 changes: 5 additions & 4 deletions cmd/logs.go
Original file line number Diff line number Diff line change
Expand Up @@ -12,10 +12,11 @@ import (
)

var logsCmd = &cobra.Command{
Use: "logs <app_name>",
Short: "Show logs for a Kernel application",
Args: cobra.ExactArgs(1),
RunE: runLogs,
Use: "logs <app_name>",
Aliases: []string{"log"},
Short: "Show logs for a Kernel application",
Args: cobra.ExactArgs(1),
RunE: runLogs,
}

func init() {
Expand Down
7 changes: 4 additions & 3 deletions cmd/profiles.go
Original file line number Diff line number Diff line change
Expand Up @@ -207,9 +207,10 @@ func (p ProfilesCmd) Download(ctx context.Context, in ProfilesDownloadInput) err
// --- Cobra wiring ---

var profilesCmd = &cobra.Command{
Use: "profiles",
Short: "Manage profiles",
Long: "Commands for managing Kernel browser profiles",
Use: "profiles",
Aliases: []string{"profile"},
Short: "Manage profiles",
Long: "Commands for managing Kernel browser profiles",
}

var profilesListCmd = &cobra.Command{
Expand Down
7 changes: 4 additions & 3 deletions cmd/proxies/proxies.go
Original file line number Diff line number Diff line change
Expand Up @@ -6,9 +6,10 @@ import (

// ProxiesCmd is the parent command for proxy operations
var ProxiesCmd = &cobra.Command{
Use: "proxies",
Short: "Manage proxy configurations",
Long: "Commands for managing proxy configurations for browser sessions",
Use: "proxies",
Aliases: []string{"proxy"},
Short: "Manage proxy configurations",
Long: "Commands for managing proxy configurations for browser sessions",
Run: func(cmd *cobra.Command, args []string) {
// If called without subcommands, show help
_ = cmd.Help()
Expand Down