Sha256: 14af6f12b6372105c7a948248f07d0a0bc84ce9cd285c1f8afbe39f2e04787cb
Contents?: true
Size: 554 Bytes
Versions: 4
Compression:
Stored size: 554 Bytes
Contents
# frozen_string_literal: true module Command class Exists < Base NAME = "exists" OPTIONS = [ app_option(required: true) ].freeze DESCRIPTION = "Shell-checks if an application (GVC) exists, useful in scripts" LONG_DESCRIPTION = <<~DESC - Shell-checks if an application (GVC) exists, useful in scripts, e.g.: DESC EXAMPLES = <<~EX ```sh if [ cpflow exists -a $APP_NAME ]; ... ``` EX def call exit(cp.fetch_gvc.nil? ? ExitCode::ERROR_DEFAULT : ExitCode::SUCCESS) end end end
Version data entries
4 entries across 4 versions & 1 rubygems
Version | Path |
---|---|
cpflow-4.0.1 | lib/command/exists.rb |
cpflow-4.0.0 | lib/command/exists.rb |
cpflow-3.0.1 | lib/command/exists.rb |
cpflow-3.0.0 | lib/command/exists.rb |