Skip to content

Commit

Permalink
clarify tools/usage arg map
Browse files Browse the repository at this point in the history
  • Loading branch information
puredanger committed Jan 6, 2024
1 parent b9eef3d commit 9aaaaea
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 2 deletions.
2 changes: 1 addition & 1 deletion content/reference/clojure_cli.adoc
Original file line number Diff line number Diff line change
Expand Up @@ -350,7 +350,7 @@ Programs run by the Clojure CLI are given the "runtime basis" for the execution,
[[namespaces]]
=== Namespace resolution

Symbols in the exec-opts or argmaps (like `:exec-fn`) are resolved with the following rules:
Symbols in the exec-opts or arg maps (like `:exec-fn`) are resolved with the following rules:

* If function is unqualified, use the namespace in the `:ns-default` key in the arg map (if none, this is an error)
* If function is qualified, and the qualifier is an alias in the arg map under `:ns-aliases`, use that namespace
Expand Down
6 changes: 5 additions & 1 deletion content/reference/deps_edn.adoc
Original file line number Diff line number Diff line change
Expand Up @@ -438,7 +438,11 @@ Clojure CLI tools loaded from Github or a local dir can provide default tool con
[[tools_usage]]
=== :tools/usage

An exec argmap for a deps.edn-based tool.
An exec arg map for a deps.edn-based tool which may contain the following attributes:

* <<deps_edn#aliases_execargs,:exec-args>>
* <<deps_edn#aliases_nsdefault,:ns-default>>
* <<deps_edn#aliases_nsaliases,:ns-aliases>>

[[prep]]
== Prep lib
Expand Down

0 comments on commit 9aaaaea

Please sign in to comment.