cli
funcenumerate_env() -> Optional[str]Return a path for the ${pwd}/.env file.
If pwd does not exist, return None.
Returns
typing.Optional[str]funccli(ctx, file, quote, export) -> NoneThis script is used to set, get or unset values from a .env file.
paramctxclick.ContextparamfileAnyparamquoteAnyparamexportAnyReturns
Nonefuncstream_file(path) -> Iterator[IO[str]]Open a file and yield the corresponding (decoded) stream.
Exits with error code 2 if the file cannot be opened.
parampathos.PathLikeReturns
typing.Iterator[typing.IO[str]]funclist_values(ctx, output_format) -> NoneDisplay all the stored key/value.
paramctxclick.Contextparamoutput_formatstrReturns
Nonefuncset_value(ctx, key, value) -> NoneStore the given key/value.
This doesn't follow symlinks, to avoid accidentally modifying a file at a potentially untrusted path.
paramctxclick.ContextparamkeyAnyparamvalueAnyReturns
Nonefuncget(ctx, key) -> NoneRetrieve the value for the given key.
paramctxclick.ContextparamkeyAnyReturns
Nonefuncunset(ctx, key) -> NoneRemoves the given key.
This doesn't follow symlinks, to avoid accidentally modifying a file at a potentially untrusted path.
paramctxclick.ContextparamkeyAnyReturns
Nonefuncrun(ctx, override, commandline) -> NoneRun command with environment variables present.
paramctxclick.Contextparamoverrideboolparamcommandlinetuple[str, ...]Returns
Nonefuncrun_command(command, env) -> NoneReplace the current process with the specified command.
Replaces the current process with the specified command and the variables from env
added in the current environment variables.
Parameters
command: List[str] The command and it's parameters env: Dict The additional environment variables
Returns
None This function does not return any value. It replaces the current process with the new one.
paramcommandList[str]paramenvDict[str, str]Returns
None