Sha256: b134ecc0105ac3ab66b6acb6617a2ae9b21621b77339d89e0528b814cb2d688a

Contents?: true

Size: 519 Bytes

Versions: 1

Compression:

Stored size: 519 Bytes

Contents

require 'belafonte'
require 'cabal/cli'
require 'cabal/cli/authenticated'

module Cabal
  module CLI
    class List < Belafonte::App
      include Authenticated

      title 'list'
      summary 'List all known clusters'
      description "Displays the list of all known clusters, one line at a time"

      arg :cluster_name,
        times: :unlimited

      def handle
        with_authentication(partake(:config)) do
          stdout.puts partake(:client).clusters.join("\n")
        end
      end
    end
  end
end

Version data entries

1 entries across 1 versions & 1 rubygems

Version Path
cabal-0.5.0 lib/cabal/cli/list.rb