Sha256: 14af6f12b6372105c7a948248f07d0a0bc84ce9cd285c1f8afbe39f2e04787cb
Contents?: true
Size: 554 Bytes
Versions: 6
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
6 entries across 6 versions & 1 rubygems