Sha256: a8af36d679e22bfe0c95646d0865fb145522abd5305d5f05f89926665bfcff36

Contents?: true

Size: 209 Bytes

Versions: 1

Compression:

Stored size: 209 Bytes

Contents

class CLI < Thor
  desc "min", "wait xx minute(s)"
  def min(*args)
    if args.count == 1
      TimeAlert.alert args[0].to_f
    end
  end

  desc "stop", "stop alarm"
  def stop
    TimeAlert.stop
  end
end

Version data entries

1 entries across 1 versions & 1 rubygems

Version Path
time_alert-0.1.0 lib/cli.rb