unison-cli-0.0.0
Safe HaskellSafe-Inferred
LanguageHaskell2010

Unison.CommandLine.InputPattern

Synopsis

Documentation

data InputPattern Source #

Constructors

InputPattern 

Fields

type Argument = Either String StructuredArgument Source #

An argument to a command is either a string provided by the user which needs to be parsed or a numbered argument that doesn’t need to be parsed, as we’ve preserved its representation (although the numbered argument could still be of the wrong type, which should result in an error).

data ArgumentType Source #

Constructors

ArgumentType 

Fields

Instances

Instances details
Show ArgumentType Source # 
Instance details

Defined in Unison.CommandLine.InputPattern

type ArgumentDescription = Text Source #

Argument description It should fit grammatically into sentences like "I was expecting an argument for the argDesc" e.g. "namespace to merge", "definition to delete", "remote target to push to" etc.

data FZFResolver Source #

Constructors

FZFResolver 

Fields

Instances

Instances details
Show FZFResolver Source # 
Instance details

Defined in Unison.CommandLine.FZFResolvers

data IsOptional Source #

Instances

Instances details
Show IsOptional Source # 
Instance details

Defined in Unison.CommandLine.InputPattern

Eq IsOptional Source # 
Instance details

Defined in Unison.CommandLine.InputPattern

Currently Unused

unionSuggestions :: forall m v a. MonadIO m => [String -> Codebase m v a -> AuthenticatedHttpClient -> ProjectPath -> m [Completion]] -> String -> Codebase m v a -> AuthenticatedHttpClient -> ProjectPath -> m [Completion] Source #

Union suggestions from all possible completions

suggestionFallbacks :: forall m v a. MonadIO m => [String -> Codebase m v a -> AuthenticatedHttpClient -> ProjectPath -> m [Completion]] -> String -> Codebase m v a -> AuthenticatedHttpClient -> ProjectPath -> m [Completion] Source #

Try the first completer, if it returns no suggestions, try the second, etc.