// Copyright (c) HashiCorp, Inc. // SPDX-License-Identifier: MPL-2.0 package command import ( "strings" "github.com/mitchellh/cli" ) type VolumeCommand struct { Meta } func (c *VolumeCommand) Help() string { helpText := ` Usage: nomad volume [options] volume groups commands that interact with volumes. Register a new volume or update an existing volume: $ nomad volume register Examine the status of a volume: $ nomad volume status Deregister an unused volume: $ nomad volume deregister Detach an unused volume: $ nomad volume detach Create an external volume and register it: $ nomad volume create Delete an external volume and deregister it: $ nomad volume delete Please see the individual subcommand help for detailed usage information. ` return strings.TrimSpace(helpText) } func (c *VolumeCommand) Name() string { return "volume" } func (c *VolumeCommand) Synopsis() string { return "Interact with volumes" } func (c *VolumeCommand) Run(args []string) int { return cli.RunResultHelp }