Skip to content

Commit 7a1e67f

Browse files
committed
Use cmdliner 2 completions
1 parent c4186ac commit 7a1e67f

File tree

3 files changed

+31
-3
lines changed

3 files changed

+31
-3
lines changed

dune-project

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -29,7 +29,7 @@
2929
astring
3030
(fmt (>= 0.8.9))
3131
logs
32-
(cmdliner (>= 1.3.0))
32+
(cmdliner (>= 2.0.0))
3333
(tar-unix (and (>= 2.6.0) (< 3.0.0)))
3434
(yojson (>= 1.6.0))
3535
sexplib

obuilder.opam

Lines changed: 9 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -29,7 +29,7 @@ depends: [
2929
"astring"
3030
"fmt" {>= "0.8.9"}
3131
"logs"
32-
"cmdliner" {>= "1.3.0"}
32+
"cmdliner" {>= "2.0.0"}
3333
"tar-unix" {>= "2.6.0" & < "3.0.0"}
3434
"yojson" {>= "1.6.0"}
3535
"sexplib"
@@ -45,6 +45,7 @@ depends: [
4545
"alcotest-lwt" {>= "1.7.0" & with-test}
4646
"odoc" {with-doc}
4747
]
48+
dev-repo: "git+https://github.com/ocurrent/obuilder.git"
4849
build: [
4950
["dune" "subst"] {dev}
5051
[
@@ -58,5 +59,11 @@ build: [
5859
"@runtest" {with-test}
5960
"@doc" {with-doc}
6061
]
62+
[
63+
"cmdliner" "install" "tool-support"
64+
"--update-opam-install=%{_:name}%.install"
65+
"_build/install/default/bin/obuilder" {os-family != "windows"}
66+
"_build/install/default/bin/obuilder.exe" {os-family = "windows"}
67+
"_build/cmdliner-install"
68+
]
6169
]
62-
dev-repo: "git+https://github.com/ocurrent/obuilder.git"

obuilder.opam.template

Lines changed: 21 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,21 @@
1+
build: [
2+
["dune" "subst"] {dev}
3+
[
4+
"dune"
5+
"build"
6+
"-p"
7+
name
8+
"-j"
9+
jobs
10+
"@install"
11+
"@runtest" {with-test}
12+
"@doc" {with-doc}
13+
]
14+
[
15+
"cmdliner" "install" "tool-support"
16+
"--update-opam-install=%{_:name}%.install"
17+
"_build/install/default/bin/obuilder" {os-family != "windows"}
18+
"_build/install/default/bin/obuilder.exe" {os-family = "windows"}
19+
"_build/cmdliner-install"
20+
]
21+
]

0 commit comments

Comments
 (0)