Module: Packs::Private::InteractiveCli::UseCases::Interface

Extended by:
T::Helpers, T::Sig
Included in:
AddDependency, Check, Create, GetInfo, LintPackageYmlFiles, LintPackageYmlTodoFiles, MakePublic, Move, MovePack, Query, Rename, Update, Validate
Defined in:
lib/packs/private/interactive_cli/use_cases/interface.rb

Class Method Summary collapse

Instance Method Summary collapse

Class Method Details

.allObject



21
22
23
# File 'lib/packs/private/interactive_cli/use_cases/interface.rb', line 21

def self.all
  T.unsafe(@use_cases).map(&:new)
end

.included(base) ⇒ Object



14
15
16
17
18
# File 'lib/packs/private/interactive_cli/use_cases/interface.rb', line 14

def self.included(base)
  @use_cases ||= T.let(@use_cases, T.nilable(T::Array[T::Class[T.anything]]))
  @use_cases ||= []
  @use_cases << base
end

Instance Method Details

#perform!(prompt) ⇒ Object



26
# File 'lib/packs/private/interactive_cli/use_cases/interface.rb', line 26

def perform!(prompt); end

#user_facing_nameObject



29
# File 'lib/packs/private/interactive_cli/use_cases/interface.rb', line 29

def user_facing_name; end