github.com/opentofu/opentofu@v1.7.1/internal/command/alias.go (about) 1 // Copyright (c) The OpenTofu Authors 2 // SPDX-License-Identifier: MPL-2.0 3 // Copyright (c) 2023 HashiCorp, Inc. 4 // SPDX-License-Identifier: MPL-2.0 5 6 package command 7 8 import ( 9 "github.com/mitchellh/cli" 10 ) 11 12 // AliasCommand is a Command implementation that wraps another Command for the purpose of aliasing. 13 type AliasCommand struct { 14 cli.Command 15 } 16 17 func (c *AliasCommand) Run(args []string) int { 18 return c.Command.Run(args) 19 } 20 21 func (c *AliasCommand) Help() string { 22 return c.Command.Help() 23 } 24 25 func (c *AliasCommand) Synopsis() string { 26 return c.Command.Synopsis() 27 }