Sha256: 5bab3dce093d1e516cedd966a0385f8348f4517ae9c89a4f610e1542f4e3f070

Contents?: true

Size: 350 Bytes

Versions: 4

Compression:

Stored size: 350 Bytes

Contents

require_relative 'command'
module Sym
  module App
    module Commands
      class ShowHelp < Command

        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

4 entries across 4 versions & 1 rubygems

Version Path
sym-2.0.3 lib/sym/app/commands/show_help.rb
sym-2.0.2 lib/sym/app/commands/show_help.rb
sym-2.0.1 lib/sym/app/commands/show_help.rb
sym-2.0.0 lib/sym/app/commands/show_help.rb