Sha256: af69c93bd74118c5fdb5f3fe62d1129eed28b735662980e580761c056ea68932

Contents?: true

Size: 1.38 KB

Versions: 2

Compression:

Stored size: 1.38 KB

Contents

# frozen_string_literal: true

require 'saml/kit'
require 'thor'
require 'yaml/store'
require 'uri'

require 'saml/kit/core_ext/assertion'
require 'saml/kit/core_ext/authentication_request'
require 'saml/kit/core_ext/document'
require 'saml/kit/core_ext/document'
require 'saml/kit/core_ext/logout_request'
require 'saml/kit/core_ext/metadata'
require 'saml/kit/core_ext/response'
require 'saml/kit/core_ext/signature'

require 'saml/kit/cli/certificate_report'
require 'saml/kit/cli/commands'
require 'saml/kit/cli/generate_key_pair'
require 'saml/kit/cli/report'
require 'saml/kit/cli/signature_report'
require 'saml/kit/cli/version'
require 'saml/kit/cli/yaml_registry'

module Saml
  module Kit
    module Cli
      class Application < Thor
        desc 'decode SUBCOMMAND ...ARGS', 'decode SAMLRequest/SAMLResponse.'
        subcommand 'decode', Commands::Decode

        desc 'certificate SUBCOMMAND ...ARGS', 'Work with SAML Certificates.'
        subcommand 'certificate', Commands::Certificate

        desc 'metadata SUBCOMMAND ...ARGS', 'Work with SAML Metadata.'
        subcommand 'metadata', Commands::Metadata

        desc 'xmldsig SUBCOMMAND ...ARGS', 'Check XML digital signatures.'
        subcommand 'xmldsig', Commands::XmlDigitalSignature

        desc 'version', 'Display the current version'
        def version
          say Saml::Kit::Cli::VERSION
        end
      end
    end
  end
end

Version data entries

2 entries across 2 versions & 1 rubygems

Version Path
saml-kit-cli-0.3.8 lib/saml/kit/cli.rb
saml-kit-cli-0.3.7 lib/saml/kit/cli.rb