code: func renameMachineCmd(params *Parameters) *subcommands.Command {
  	return &subcommands.Command{
  		UsageLine: "name-machine -old <name> -new <name>",
  		ShortDesc: "renames a machine",
  		LongDesc:  "Renames a machine in the database.\n\nExample:\ncrimson name-machine -old xx01-07-720 -new yy01-07-720",
  		CommandRun: func() subcommands.CommandRun {
  			cmd := &RenameMachineCmd{}
  			cmd.Initialize(params)
  			cmd.Flags.StringVar(&cmd.req.Name, "old", "", "The name of the machine. Required and must be the name of a machine returned by get-machines.")
  			cmd.Flags.StringVar(&cmd.req.NewName, "new", "", "The new name of the machine. Required and must be unique within the database.")
  			return cmd
  		},
  	}
  }
docs: // renameMachineCmd returns a command to rename a machine.