def environment_list_command(environment_command)
      environment_command.desc 'List the remote environments in the project'
      environment_command.command :list do |environment_list_command|
        environment_list_command.action do |global_options,options,args|
          environments = Bebox::Environment.list(project_root)
          title _('cli.environment.list.current_envs')
          environments.map{|environment| msg(environment)}
          warn(_('cli.environment.list.no_envs')) if environments.empty?
        end
      end
    end
def environment_list_command(environment_command)
      environment_command.desc 'List the remote environments in the project'
      environment_command.command :list do |environment_list_command|
        environment_list_command.action do |global_options,options,args|
          environments = Bebox::Environment.list(project_root)
          title _('cli.environment.list.current_envs')
          environments.map{|environment| msg(environment)}
          warn(_('cli.environment.list.no_envs')) if environments.empty?
        end
      end
    end
Environment list command