Sha256: de2418a5cb3968b1ae2865eef6a392c7d758eb76eb4cc0798c0b398a9ad3c206
Contents?: true
Size: 508 Bytes
Versions: 2
Compression:
Stored size: 508 Bytes
Contents
# frozen_string_literal: true module Command class NoCommand < Base NAME = "no-command" OPTIONS = [version_option].freeze DESCRIPTION = "Called when no command was specified" LONG_DESCRIPTION = <<~DESC - Called when no command was specified DESC HIDE = true WITH_INFO_HEADER = false VALIDATIONS = [].freeze def call if config.options[:version] run_cpflow_command("version") else run_cpflow_command("help") end end end end
Version data entries
2 entries across 2 versions & 1 rubygems
Version | Path |
---|---|
cpflow-4.0.1 | lib/command/no_command.rb |
cpflow-4.0.0 | lib/command/no_command.rb |