Skip navigation links

Package com.palantir.giraffe.command.interactive

Provides classes for performing interactive command execution.

See: Description

Package com.palantir.giraffe.command.interactive Description

Provides classes for performing interactive command execution. Interactive implies that it is of interest to perform actions before the command completes.

One use case is commands that require user input. This use case is supported by using <prompt, response> pairs which are modeled by the AbstractResponseProvider object parameterized with String. This object is used by a ShellConversation to carry out a scripted conversation.

A second use case is long-running commands where it is of interest to perform certain actions when certain output appears. A CommandOutputTrigger is used to do this and will execute given Runnables on string matches. Similar ShellConversation, this uses an ResponseProvider but parameterized with Runnable.

In all cases, strings can be matched via regular expression, exact matching, or using a custom Predicate.

Skip navigation links