class CollinsShell::Tag

Public Class Methods

banner(task, namespace = true, subcommand = false) click to toggle source

Public Instance Methods

list() click to toggle source
# File lib/collins_shell/tag.rb, line 20
def list
  call_collins get_collins_client, "list" do |client|
    header = [["Name", "Label", "Description"]]
    tags = header + client.get_all_tags.map do |tag|
      [tag.name, tag.label, tag.description]
    end
    print_table tags
  end
end
values(tag) click to toggle source
# File lib/collins_shell/tag.rb, line 32
def values tag
  call_collins get_collins_client, "values" do |client|
    client.get_tag_values(tag).sort.each do |value|
      puts(value)
    end
  end
end