module Dapp::CLI::Options::Tag
Public Class Methods
extended(klass)
click to toggle source
# File lib/dapp/cli/options/tag.rb, line 5 def self.extended(klass) klass.class_eval do "Add tag (can be used one or more times), specified text will be slugified".tap do |desc| option :tag, long: '--tag TAG', description: desc, default: [], proc: proc { |v| composite_options(:tags) << v } option :tag_slug, long: '--tag-slug TAG', description: desc, default: [], proc: proc { |v| composite_options(:slug_tags) << v } end option :tag_plain, long: '--tag-plain TAG', description: "Add tag (can be used one or more times)", default: [], proc: proc { |v| composite_options(:plain_tags) << v } option :tag_branch, long: '--tag-branch', description: 'Tag by git branch', boolean: true option :tag_build_id, long: '--tag-build-id', description: 'Tag by CI build id', boolean: true option :tag_ci, long: '--tag-ci', description: 'Tag by CI branch and tag', boolean: true option :tag_commit, long: '--tag-commit', description: 'Tag by git commit', boolean: true end end