github.com/LukasHeimann/cloudfoundrycli/v8@v8.4.4/command/v7/revision_command.go (about) 1 package v7 2 3 import ( 4 "github.com/LukasHeimann/cloudfoundrycli/v8/command" 5 "github.com/LukasHeimann/cloudfoundrycli/v8/command/flag" 6 ) 7 8 type RevisionCommand struct { 9 BaseCommand 10 usage interface{} `usage:"CF_NAME revision APP_NAME [--version VERSION]"` 11 RequiredArgs flag.AppName `positional-args:"yes"` 12 Version flag.Revision `long:"version" required:"true" description:"The integer representing the specific revision to show"` 13 relatedCommands interface{} `related_commands:"revisions, rollback"` 14 } 15 16 func (cmd RevisionCommand) Execute(_ []string) error { 17 cmd.UI.DisplayWarning(command.ExperimentalWarning) 18 cmd.UI.DisplayNewline() 19 return nil 20 }