Skip to content

Commit

Permalink
update documentation
Browse files Browse the repository at this point in the history
  • Loading branch information
jshawl committed Feb 17, 2024
1 parent c6aab17 commit ac43732
Show file tree
Hide file tree
Showing 2 changed files with 10 additions and 1 deletion.
7 changes: 6 additions & 1 deletion lib/minisign/cli.rb
Original file line number Diff line number Diff line change
Expand Up @@ -4,11 +4,15 @@

# rubocop:disable Metrics/ModuleLength
module Minisign
# The command line interface
# The command line interface.
# This module is _not_ intended for library usage and is subject to
# breaking changes.
module CLI
# rubocop:disable Metrics/AbcSize
# rubocop:disable Metrics/MethodLength
# rubocop:disable Metrics/CyclomaticComplexity

# Command line usage
def self.usage
puts 'Usage:'
puts 'minisign -G [-f] [-p pubkey_file] [-s seckey_file] [-W]'
Expand Down Expand Up @@ -145,6 +149,7 @@ def self.verify(options)

puts options[:Q] ? signature.trusted_comment : verification
end

# rubocop:enable Metrics/CyclomaticComplexity
# rubocop:enable Metrics/AbcSize
# rubocop:enable Metrics/MethodLength
Expand Down
4 changes: 4 additions & 0 deletions lib/minisign/key_pair.rb
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,10 @@ module Minisign
class KeyPair
include Minisign::Utils

# Create a new key pair
# @param password [String] The password used to encrypt the private key
# @example
# Minisign::KeyPair.new("53cr3t P4s5w0rd")
def initialize(password = nil)
@password = password
@key_id = SecureRandom.bytes(8)
Expand Down

0 comments on commit ac43732

Please sign in to comment.