lib/paperback/cli.rb in paperback-0.0.4 vs lib/paperback/cli.rb in paperback-0.0.5

- old
+ new

@@ -1,9 +1,12 @@ +# typed: strict # frozen_string_literal: true module Paperback module CLI + extend T::Sig + # Top level CLI interface for Paperback. This is the one stop shop for # calling paperback. # # @param [String] input The input filename # @param [String] output The output PDF filename @@ -16,9 +19,23 @@ # passphrase to # @param [Hash] extra_draw_opts Other options passed to # [Paperback::Preparer#render] # @param [Boolean] include_base64 Whether to include a Base64 copy of the # input + sig do + params( + input: String, + output: String, + encrypt: T::Boolean, + qr_base64: T::Boolean, + qr_level: Symbol, + comment: T.nilable(String), + passphrase_file: T.nilable(String), + extra_draw_opts: T::Hash[T.untyped, T.untyped], + include_base64: T::Boolean, + ) + .void + end def self.create_backup(input:, output:, encrypt: true, qr_base64: true, qr_level: :l, comment: nil, passphrase_file: nil, extra_draw_opts: {}, include_base64: true) prep = Paperback::Preparer.new(filename: input, encrypt: encrypt, qr_base64: qr_base64, qr_level: qr_level,