def _ctl_cmd(cmd, name, conf_file, bin_env):
 ret = [_get_supervisorctl_bin(bin_env)]
 if (conf_file is not None):
  ret += ['-c', conf_file]
 ret.append(cmd)
 if name:
  ret.append(name)
 return ret

def _ctl_cmd ( cmd , name , conf_file , bin_env ) : ret = [ _get_supervisorctl_bin ( bin_env ) ] if ( conf_file is not None ) : ret += [ '-c' , conf_file ] ret . append ( cmd ) if name : ret . append ( name ) return ret
return the command list to use .