github.com/hashicorp/packer@v1.14.3/command/plugins.go (about)

     1  // Copyright (c) HashiCorp, Inc.
     2  // SPDX-License-Identifier: BUSL-1.1
     3  
     4  package command
     5  
     6  import (
     7  	"strings"
     8  
     9  	"github.com/mitchellh/cli"
    10  )
    11  
    12  type PluginsCommand struct {
    13  	Meta
    14  }
    15  
    16  func (c *PluginsCommand) Synopsis() string {
    17  	return "Interact with Packer plugins and catalog"
    18  }
    19  
    20  func (c *PluginsCommand) Help() string {
    21  	helpText := `
    22  Usage: packer plugins <subcommand> [options] [args]
    23    This command groups subcommands for interacting with Packer plugins.
    24  
    25  Related but not under the "plugins" command :
    26  
    27  - "packer init <path>" will install all plugins required by a config.
    28  `
    29  
    30  	return strings.TrimSpace(helpText)
    31  }
    32  
    33  func (c *PluginsCommand) Run(args []string) int {
    34  	return cli.RunResultHelp
    35  }