Skip to content

Commit b901614

Browse files
committed
chore(scripts): update output
Signed-off-by: Luca Muscariello <[email protected]>
1 parent 773e443 commit b901614

File tree

1 file changed

+15
-16
lines changed

1 file changed

+15
-16
lines changed

scripts/generate_types.sh

Lines changed: 15 additions & 16 deletions
Original file line numberDiff line numberDiff line change
@@ -57,22 +57,21 @@ while [[ $# -gt 0 ]]; do
5757
done
5858

5959
if [ -z "$GENERATED_FILE" ]; then
60-
echo "Error: Output file path must be provided." >&2
61-
echo "Usage: $0 [--input-file <path>] [--version <version>] <output-file-path>"
62-
echo ""
63-
echo "Options:"
64-
echo " --input-file <path> Use a local JSON schema file instead of fetching from remote"
65-
echo " --version <version> Specify A2A spec version (default: v0.3.0)"
66-
echo " Can be a git tag (v1.0.0), branch (main), or commit SHA"
67-
echo ""
68-
echo "Environment variables:"
69-
echo " A2A_SPEC_VERSION Override default spec version"
70-
echo ""
71-
echo "Examples:"
72-
echo " $0 src/a2a/types.py"
73-
echo " $0 --version v1.2.0 src/a2a/types.py"
74-
echo " $0 --input-file local/a2a.json src/a2a/types.py"
75-
echo " A2A_SPEC_VERSION=main $0 src/a2a/types.py"
60+
cat >&2 <<EOF
61+
Error: Output file path must be provided.
62+
Usage: $0 [--input-file <path>] [--version <version>] <output-file-path>
63+
Options:
64+
--input-file <path> Use a local JSON schema file instead of fetching from remote
65+
--version <version> Specify A2A spec version (default: v0.3.0)
66+
Can be a git tag (v1.0.0), branch (main), or commit SHA
67+
Environment variables:
68+
A2A_SPEC_VERSION Override default spec version
69+
Examples:
70+
$0 src/a2a/types.py
71+
$0 --version v1.2.0 src/a2a/types.py
72+
$0 --input-file local/a2a.json src/a2a/types.py
73+
A2A_SPEC_VERSION=main $0 src/a2a/types.py
74+
EOF
7675
exit 1
7776
fi
7877

0 commit comments

Comments
 (0)