code: func runCommand(cCmd *cobra.Command, machID string, cmd string, args ...string) (retcode int) {
  	var err error
  	if machine.IsLocalMachineID(machID) {
  		err, retcode = runLocalCommand(cmd, args...)
  		if err != nil {
  			stderr("Error running local command: %v", err)
  		}
  	} else {
  		ms, err := machineState(machID)
  		if err != nil || ms == nil {
  			stderr("Error getting machine IP: %v", err)
  		} else {
  			addr := findSSHPort(cCmd, ms.PublicIP)
  			err, retcode = runRemoteCommand(cCmd, addr, cmd, args...)
  			if err != nil {
  				stderr("Unable to SSH to remote host: %v", err)
  			}
  		}
  	}
  	return
  }
docs: // runCommand will attempt to run a command on a given machine. It will attempt
  // to SSH to the machine if it is identified as being remote.