lib/zold/commands/propagate.rb
# Returns list of Wallet IDs which were affected
Returns list of Wallet IDs which were affected
Returns list of Wallet IDs which were affected
def run(args = [])
      opts = Slop.parse(args, help: true, suppress_errors: true) do |o|
        o.banner = "Usage: zold propagate [ID...] [options]
Available options:"
        o.bool '--help', 'Print instructions'
      end
      mine = Args.new(opts, @log).take || return
      modified = []
      (mine.empty? ? @wallets.all : mine.map { |i| Id.new(i) }).each do |id|
        modified += propagate(id, opts)
      end
      modified
    end
def run ( args = [ ] ) opts = Slop . parse ( args , help : true , suppress_errors : true ) do | o | o . banner = "Usage: zold propagate [ID...] [options]
Available options:" o . bool '--help' , 'Print instructions' end mine = Args . new ( opts , @log ) . take || return modified = [ ] ( mine . empty? ? @wallets . all : mine . map { | i | Id . new ( i ) } ) . each do | id | modified += propagate ( id , opts ) end modified end
Returns list of Wallet IDs which were affected
Returns list of Wallet IDs which were affected
args
<not_specific>