Skip to content

Commit 9b574a1

Browse files
committed
new: looking agents by also adding a .yml part, so that nerve run agent is translated to nerve run /Users/evilsocket/.nerve/agents/agent.yml if it exxists
1 parent dfc02a2 commit 9b574a1

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

nerve/cli/run.py

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -118,6 +118,10 @@ def _resolve_input_path(input_path: pathlib.Path) -> pathlib.Path:
118118
if in_home.exists():
119119
input_path = in_home
120120

121+
in_home_with_yaml = in_home.with_suffix(".yml")
122+
if in_home_with_yaml.exists():
123+
input_path = in_home_with_yaml
124+
121125
if not input_path.exists():
122126
logger.error(f"path '{input_path}' does not exist")
123127
raise typer.Abort()

0 commit comments

Comments
 (0)