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 b2d08f4 commit 229290aCopy full SHA for 229290a
dof/cli/root.py
@@ -53,9 +53,17 @@ def user_specs(
53
None,
54
help="uuid of the revision to inspect for user_specs"
55
),
56
+ prefix: str = typer.Option(
57
+ None,
58
+ help="prefix to save"
59
+ ),
60
):
61
"""Demo command: output the list of user requested specs for a revision"""
- prefix = os.environ.get("CONDA_PREFIX")
62
+ if prefix is None:
63
+ prefix = os.environ.get("CONDA_PREFIX")
64
+ else:
65
+ prefix = os.path.abspath(prefix)
66
+
67
if rev is None:
68
meta = CondaMeta(prefix=prefix)
69
specs = meta.get_requested_specs()
0 commit comments