Sha256: b9907d466230c9bb4a07e155c46b6b1a7880afcd64abf22960080f5dc0edd77c

Contents?: true

Size: 584 Bytes

Versions: 2

Compression:

Stored size: 584 Bytes

Contents

# frozen_string_literal: true

require_all "bridgetown-core/commands/concerns"

module BridgetownCredentials
  class Commands
    class Credentials < Thor
      Bridgetown::Commands::Registrations.register do
        desc "credentials <command>", "Work with encrypted credentials"
        subcommand "credentials", Credentials
      end

      desc "edit", "Edit (or create) encrypted credentials"
      option :environment, aliases: '-e'
      def edit
        BridgetownCredentials.initializer
        Bridgetown.credentials.edit! options['environment']
      end
    end
  end
end

Version data entries

2 entries across 2 versions & 1 rubygems

Version Path
bridgetown_credentials-1.0.1 lib/bridgetown_credentials/commands/credentials.rb
bridgetown_credentials-1.0.0 lib/bridgetown_credentials/commands/credentials.rb