-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Signed-off-by: Frost Ming <me@frostming.com>
- Loading branch information
Showing
5 changed files
with
60 additions
and
54 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,34 @@ | ||
import click | ||
|
||
|
||
@click.group() | ||
def main(): | ||
"""ComfyUI IDL CLI""" | ||
|
||
|
||
@main.command(name="install") | ||
@click.option( | ||
"--workspace", | ||
"-w", | ||
default="workspace", | ||
help="Workspace directory", | ||
type=click.Path(file_okay=False), | ||
) | ||
@click.argument("cpack", type=click.Path(exists=True, dir_okay=False)) | ||
def install_cmd(cpack: str, workspace: str): | ||
""" | ||
Install ComfyUI workspace from a zipped package. | ||
Example: | ||
# Install to the default directory(`workspace`) | ||
$ comfyui_idl install workspace.cpack.zip | ||
# Install to a different directory | ||
$ comfyui_idl install -w my_workspace workspace.cpack.zip | ||
""" | ||
from .package import install | ||
|
||
install(cpack, workspace) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Oops, something went wrong.