We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 05f2e3e commit 9589c76Copy full SHA for 9589c76
firefly/cli.py
@@ -17,6 +17,8 @@
17
18
app = typer.Typer()
19
20
+image_app = typer.Typer()
21
+
22
23
mock_image = "https://developer.adobe.com/firefly-services/docs/static/82044b6fe3cf44ec68c4872f784cd82d/96d48/cat-coding.webp"
24
@@ -85,7 +87,7 @@ def download_image(image_url: str):
85
87
typer.echo(f"Downloaded image ({size} bytes) to {filename}")
86
88
89
-@app.command()
90
+@image_app.command()
91
def generate(
92
client_id: str = typer.Option(
93
None,
@@ -176,5 +178,8 @@ def capture_request(*args, **kwargs):
176
178
typer.secho(f"[warn] Could not display image in terminal using imgcat: {e}", fg=typer.colors.YELLOW, err=True)
177
179
180
181
+app.add_typer(image_app, name="image")
182
183
184
if __name__ == "__main__":
185
app()
0 commit comments