Skip to content

Commit

Permalink
Merge pull request #12 from MTVersionManager/pluginInstallAlias
Browse files Browse the repository at this point in the history
Add aliases to plugin install command
  • Loading branch information
leomick authored Feb 9, 2025
2 parents e78cb53 + 90f189d commit 775e57f
Showing 1 changed file with 5 additions and 4 deletions.
9 changes: 5 additions & 4 deletions cmd/plugincmds/install.go
Original file line number Diff line number Diff line change
Expand Up @@ -175,10 +175,11 @@ func (m installModel) View() string {
}

var InstallCmd = &cobra.Command{
Use: "install [plugin url]",
Short: "Install a plugin",
Long: `Install a plugin given a link to the plugin's metadata JSON`,
Args: cobra.ExactArgs(1),
Use: "install [plugin url]",
Short: "Install a plugin",
Long: `Install a plugin given a link to the plugin's metadata JSON`,
Args: cobra.ExactArgs(1),
Aliases: []string{"i", "in"},
Run: func(cmd *cobra.Command, args []string) {
validate := validator.New(validator.WithRequiredStructEnabled())
err := validate.Var(args[0], "http_url")
Expand Down

0 comments on commit 775e57f

Please sign in to comment.