nb_cli.utils
def script_wrapper(command)
ๅๆฐ
command
(str)
่ฟๅ
- Unknown
def gen_script(adapters, builtin_plugins)
ๅๆฐ
adapters
(list[str])builtin_plugins
(list[str])
่ฟๅ
- str
def list_to_shell_command(cmd)
ๅๆฐ
cmd
(list[str])
่ฟๅ
- str
def decode(string, encodings=None)
ๅๆฐ
string
(bytes | str)encodings
(list[str] | None)
่ฟๅ
- str
def encode(string, encodings=None)
ๅๆฐ
string
(str)encodings
(list[str] | None)
่ฟๅ
- bytes
def run_script(cmd, **kwargs)
่ฏดๆ
Run a command inside the Python environment.
้่ฝฝ
1.
(cmd, *, call, **kwargs)
ๅๆฐ
cmd
(list[str])call
(bool)**kwargs
(Any)
่ฟๅ
- int
2.
(cmd, *, input_, **kwargs)
ๅๆฐ
cmd
(list[str])input_
(str | None)**kwargs
(Any)
่ฟๅ
- str
def get_data_dir(version=None)
ๅๆฐ
version
(str | None)
่ฟๅ
- pathlib.Path
class ClickAliasedCommand(*args, **kwargs)
ๅๆฐ
*args
**kwargs
class ClickAliasedGroup(*args, **kwargs)
ๅๆฐ
*args
**kwargs
method add_command(self, cmd, name=None)
ๅๆฐ
cmd
(click.core.Command)name
(str | None)
่ฟๅ
- None
method command(self, *args, **kwargs)
ๅๆฐ
*args
**kwargs
่ฟๅ
- Unknown
method format_commands(self, ctx, formatter)
ๅๆฐ
ctx
formatter
่ฟๅ
- Unknown
method get_command(self, ctx, cmd_name)
ๅๆฐ
ctx
cmd_name
่ฟๅ
- Unknown
method group(self, *args, **kwargs)
ๅๆฐ
*args
**kwargs
่ฟๅ
- Unknown
method resolve_alias(self, cmd_name)
ๅๆฐ
cmd_name
่ฟๅ
- Unknown