Skip to Content
Vuesho

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) -> None

This script is used to set, get or unset values from a .env file.

paramctxclick.Context
paramfileAny
paramquoteAny
paramexportAny

Returns

None
funcstream_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.PathLike

Returns

typing.Iterator[typing.IO[str]]
funclist_values(ctx, output_format) -> None

Display all the stored key/value.

paramctxclick.Context
paramoutput_formatstr

Returns

None
funcset_value(ctx, key, value) -> None

Store the given key/value.

This doesn't follow symlinks, to avoid accidentally modifying a file at a potentially untrusted path.

paramctxclick.Context
paramkeyAny
paramvalueAny

Returns

None
funcget(ctx, key) -> None

Retrieve the value for the given key.

paramctxclick.Context
paramkeyAny

Returns

None
funcunset(ctx, key) -> None

Removes the given key.

This doesn't follow symlinks, to avoid accidentally modifying a file at a potentially untrusted path.

paramctxclick.Context
paramkeyAny

Returns

None
funcrun(ctx, override, commandline) -> None

Run command with environment variables present.

paramctxclick.Context
paramoverridebool
paramcommandlinetuple[str, ...]

Returns

None
funcrun_command(command, env) -> None

Replace 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

On this page