Sha256: 3ba09ad5bc21b2e8277bfde12f90881ea96c715edbe018233f28c4ea09deb0fa

Contents?: true

Size: 367 Bytes

Versions: 3

Compression:

Stored size: 367 Bytes

Contents

require 'sym/app/commands/base_command'
module Sym
  module App
    module Commands
      class ShowHelp < BaseCommand

        required_options :help, ->(opts) { opts.to_hash.keys.all? { |k| !opts[k] } }
        try_after :generate_key, :open_editor, :encrypt_decrypt

        def execute
          opts.to_s(prefix: ' ' * 2)
        end
      end
    end
  end
end

Version data entries

3 entries across 3 versions & 1 rubygems

Version Path
sym-2.1.2 lib/sym/app/commands/show_help.rb
sym-2.1.1 lib/sym/app/commands/show_help.rb
sym-2.1.0 lib/sym/app/commands/show_help.rb