# 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 = <<~HEREDOC - Shell-checks if an application (GVC) exists, useful in scripts, e.g.: HEREDOC EXAMPLES = <<~HEREDOC ```sh if [ cpl exists -a $APP_NAME ]; ... ``` HEREDOC def call exit(!cp.fetch_gvc.nil?) end end end