You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: README.md
+15-2
Original file line number
Diff line number
Diff line change
@@ -5,7 +5,7 @@ See [the documentation of Lake](https://github.com/leanprover/lake).
5
5
Use one of the following for the `<tag>` in the dependency source `Source.git "https://github.com/mhuisi/lean4-cli.git" "<tag>"`:
6
6
-`main` if you want to stay in sync with Lean 4 milestone releases. The `main` branch will contain a working version of lean4-cli for the most recent Lean 4 milestone.
7
7
-`nightly` if you want to stay in sync with Lean 4 nightly releases. The `nightly` branch will contain a working version of lean4-cli for the most recent Lean 4 nightly build.
8
-
- One of the specific release tags if you want to pin a specific version, e.g. `v1.0.0-lv4.0.0-m4` for v1.0.0 for the 4th Lean 4 milestone release or `v1.0.0-lnightly-2022-05-21` for v1.0.0 for the Lean 4 nightly version from 2022-05-21. Only nightlies where lean4-cli broke will receive a release tag.
8
+
- One of the specific release tags if you want to pin a specific version, e.g. `v1.0.0-lv4.0.0-m5` for v1.0.0 for the 5th Lean 4 milestone release or `v1.0.0-lnightly-2023-08-15` for v1.0.0 for the Lean 4 nightly version from 2023-08-15.
9
9
10
10
### Configuration
11
11
Commands are configured with a lightweight DSL. The following declarations define a command `exampleCmd` with two subcommands `installCmd` and `testCmd`. `runExampleCmd` denotes a handler that is called when the command is run and is described further down below in the **Command Handlers** subsection.
@@ -34,6 +34,9 @@ def exampleCmd : Cmd := `[Cli|
34
34
o, optimize; "Declares a flag `--optimize` with an associated short alias `-o`."
35
35
p, priority : Nat; "Declares a flag `--priority` with an associated short alias `-p` " ++
36
36
"that takes an argument of type `Nat`."
37
+
module : ModuleName; "Declares a flag `--module` that takes an argument of type `ModuleName` " ++
38
+
"which be used to reference Lean modules like `Init.Data.Array` " ++
39
+
"or Lean files using a relative path like `Init/Data/Array.lean`."
37
40
"set-paths" : Array String; "Declares a flag `--set-paths` " ++
0 commit comments