Sha256: f78e028a867b5bf1fccd34dd55559201c94bb83de18b6bd51d8d6d3119c2d68b
Contents?: true
Size: 665 Bytes
Versions: 3
Compression:
Stored size: 665 Bytes
Contents
module Troo module CLI class Default < ThorFixes include Helpers package_name "default" desc "board <id>", "Set the board <id> to default." def board(id) initialize_and_dispatch(id, :board) end desc "card <id>", "Set the card <id> to default." def card(id) initialize_and_dispatch(id, :card) end desc "list <id>", "Set the list <id> to default." def list(id) initialize_and_dispatch(id, :list) end private attr_reader :id, :type def initialize_and_dispatch(id, type) @id, @type = id, type set_default end end end end
Version data entries
3 entries across 3 versions & 1 rubygems
Version | Path |
---|---|
troo-0.0.7 | lib/troo/cli/default_cli.rb |
troo-0.0.6 | lib/troo/cli/default_cli.rb |
troo-0.0.5 | lib/troo/cli/default_cli.rb |