orchestra-cli 0.0.2__tar.gz → 0.0.3__tar.gz

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.4
2
2
  Name: orchestra-cli
3
- Version: 0.0.2
3
+ Version: 0.0.3
4
4
  Summary: Orchestra CLI. Perform operations with Orchestra locally.
5
5
  Author-email: Orchestra Technologies <support@getorchestra.io>
6
6
  Requires-Python: >=3.8
@@ -33,8 +33,10 @@ def indent_message(msg: str, indent: str = " ") -> str:
33
33
  def get_yaml_snippet(data: Any, loc: List[Any]) -> dict[str, Any]:
34
34
  weird_keys = ["TaskGroupModel"]
35
35
  try:
36
- for key in loc:
36
+ for idx, key in enumerate(loc):
37
37
  if key not in weird_keys:
38
+ if key not in data:
39
+ return {loc[idx - 1]: data}
38
40
  data = data[key]
39
41
  return {loc[-1]: data}
40
42
  except Exception:
@@ -91,7 +93,6 @@ def validate(file: Path = typer.Argument(..., help="YAML file to validate")):
91
93
  typer.echo(
92
94
  yellow("(Could not locate this path in your YAML)")
93
95
  )
94
- typer.echo("")
95
96
  else:
96
97
  typer.echo(errors)
97
98
  except Exception:
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.4
2
2
  Name: orchestra-cli
3
- Version: 0.0.2
3
+ Version: 0.0.3
4
4
  Summary: Orchestra CLI. Perform operations with Orchestra locally.
5
5
  Author-email: Orchestra Technologies <support@getorchestra.io>
6
6
  Requires-Python: >=3.8
@@ -1,6 +1,6 @@
1
1
  [project]
2
2
  name = "orchestra-cli"
3
- version = "0.0.2"
3
+ version = "0.0.3"
4
4
  description = "Orchestra CLI. Perform operations with Orchestra locally."
5
5
  readme = "README.md"
6
6
  authors = [
File without changes
File without changes