Sha256: 2e2d955f97b4c6b3f240759972175cea87f5eb2001ee1a20f5af35923eda216a

Contents?: true

Size: 532 Bytes

Versions: 3

Compression:

Stored size: 532 Bytes

Contents

# frozen_string_literal: true
require "cri"

require "cfer/auster/cli/_shared"

module Cfer
  module Auster
    module CLI
      def self.tasks
        Cri::Command.define do
          name "tasks"
          usage "tasks"
          description "Prints a list of tasks available in this repo."

          CLI.standard_options(self)

          run do |opts, args, cmd|
            CLI.repo_from_options(opts) do |repo|
              repo.tasks.each { |t| puts t }
            end
          end
        end
      end
    end
  end
end

Version data entries

3 entries across 3 versions & 1 rubygems

Version Path
auster-0.4.0 lib/cfer/auster/cli/tasks.rb
auster-0.3.1 lib/cfer/auster/cli/tasks.rb
auster-0.3.0 lib/cfer/auster/cli/tasks.rb