github.com/taubyte/tau-cli@v0.1.13-0.20240326000942-487f0d57edfc/cli/commands/resources/service/base.go (about)

     1  package service
     2  
     3  import (
     4  	"github.com/taubyte/tau-cli/cli/common"
     5  	"github.com/taubyte/tau-cli/cli/common/options"
     6  	"github.com/taubyte/tau-cli/i18n"
     7  	"github.com/urfave/cli/v2"
     8  )
     9  
    10  // Base is the command that is proliferated to all sub commands
    11  // Example options.NameFlagArg0() gives --name flag and args[0] name to
    12  // new, edit, delete, etc...
    13  func (link) Base() (*cli.Command, []common.Option) {
    14  	return common.Base(
    15  		&cli.Command{
    16  			Name:      "service",
    17  			ArgsUsage: i18n.ArgsUsageName,
    18  		}, options.NameFlagArg0(),
    19  	)
    20  }