Skip to content

flatten

Source

Hook for flattening args/kwargs/flags into CLI inputs. Takes a declarative hookinput and turns it into a string that can be used to call a generic CLI program.

Inputs

Name Type Default Required Description
hook str None False A hook
positional_args list None False A list of args that should be considered positional.
inputs dict None False A dictionary of arguments to use when flattening.

Arguments

Position Argument Type
1 hook str
2 positional_args list

Returns

str