struct GitRewriteAuthor::CLI::Flags

Overview

Extend the flags struct to include the flag

Defined in:

cli.cr:6
cli.cr:15
cli.cr:19
cli.cr:24
cli.cr:29

Constant Summary

DESCRIPTIONS = {} of String => String
SPECS = {"__version__" => {kind: "bool", type: "Bool", default: "false", description: {"--version", "Displays the version of the current application."}, short: "nil", long: "version", is_required: true}, "__help__" => {kind: "bool", type: "Bool", default: "false", description: {"--help", "Displays help for the current command."}, short: "nil", long: "help", is_required: true}, "committer" => {kind: "bool", type: "Bool", default: "true", description: {"--committer", "Rewrites committer authorship data."}, short: "nil", long: "committer", is_required: true}, "branches" => {kind: "bool", type: "Bool", default: "false", description: {"--branches, -b", "Rewrites commits in all branches."}, short: "b", long: "branches", is_required: true}, "tags" => {kind: "bool", type: "Bool", default: "false", description: {"--tags, -t", "Rewrites commits in all tags."}, short: "t", long: "tags", is_required: true}, "color" => {kind: "bool", type: "Bool", default: "true", description: {"--color", "Enables colors."}, short: "nil", long: "color", is_required: true}, "old_name" => {kind: "nil", type: "String", default: "nil", description: {"--old-name", "Old author name."}, short: "nil", long: "old-name", is_required: false}, "new_name" => {kind: "nil", type: "String", default: "nil", description: {"--new-name", "New author name."}, short: "nil", long: "new-name", is_required: false}, "old_email" => {kind: "nil", type: "String", default: "nil", description: {"--old-email", "Old author email."}, short: "nil", long: "old-email", is_required: false}, "new_email" => {kind: "nil", type: "String", default: "nil", description: {"--new-email", "New author email."}, short: "nil", long: "new-email", is_required: false}} of String => NamedTuple(kind: String, type: String, default: String, description: Tuple(String, String | ::Nil), short: String | ::Nil, long: String, is_required: Bool)

Constructors

Instance Method Summary

Constructor Detail

def self.new(command : Admiral::Command) #

Instance Method Detail

def __help__ #

def __version__ #

def branches #

[View source]
def color #

[View source]
def committer #

[View source]
def inspect(io) #

[View source]
def new_email : String? #

def new_name : String? #

def old_email : String? #

def old_name : String? #

def tags #

[View source]
def validate!(command) #