lib/sample_cmdlet_patterns/commands/prompt_suggest.rb
# Execute PromptSuggest subcommand taking input from
# a input stream and writing to output stream
#
# sample: output.puts 'OK'
Execute PromptSuggest subcommand taking input from
a input stream and writing to output stream


Execute PromptSuggest subcommand taking input from a input stream and writing to output stream
def execute(input: $stdin, output: $stdout)
        prompt = TTY::Prompt.new
        prompt.suggest('sta', %w[stage stash commit branch])
        possible = %w[status stage stash commit branch blame]
        prompt.suggest('b', possible, indent: 4, single_text: 'Perhaps you meant?')
        :gui
      end
def execute ( input : $stdin , output : $stdout ) prompt = TTY :: Prompt . new prompt . suggest ( 'sta' , %w[ stage stash commit branch ] ) possible = %w[ status stage stash commit branch blame ] prompt . suggest ( 'b' , possible , indent : 4 , single_text : 'Perhaps you meant?' ) :gui end
Execute PromptSuggest subcommand taking input from
a input stream and writing to output stream
Execute PromptSuggest subcommand taking input from a input stream and writing to output stream
input
output