Skip to content

Commit 83e5abb

Browse files
xaionaro@dx.centerxaionaro@dx.center
authored andcommitted
Add list-commands Makefile target to show all aidlcli subcommands
1 parent f0dc14a commit 83e5abb

1 file changed

Lines changed: 5 additions & 1 deletion

File tree

Makefile

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
.PHONY: generate test e2e lint clean readme smoke aidlcli genaidlcli
1+
.PHONY: generate test e2e lint clean readme smoke aidlcli genaidlcli list-commands
22

33
# Generated top-level directories.
44
GENERATED_DIRS := android com fuzztest libgui_test_server parcelables src
@@ -35,6 +35,10 @@ genaidlcli:
3535
aidlcli:
3636
go build -o aidlcli ./tools/cmd/aidlcli
3737

38+
# List all available aidlcli subcommands.
39+
list-commands:
40+
go run ./tools/cmd/aidlcli --help 2>&1 | grep '^ ' | awk '{print $$1}'
41+
3842
# Remove all generated code.
3943
clean:
4044
rm -rf $(GENERATED_DIRS)

0 commit comments

Comments
 (0)