File tree 5 files changed +13
-2
lines changed
5 files changed +13
-2
lines changed Original file line number Diff line number Diff line change 1
1
## unreleased
2
2
3
+ ### Added
4
+
5
+ - Add the ` --version ` command-line option (#<PR_NUMBER>, @gpetiot )
6
+
3
7
### Changed
4
8
5
9
- Replace exceptions by result types for the requests (#11 , @gpetiot )
Original file line number Diff line number Diff line change 2
2
(name main)
3
3
(public_name get-activity)
4
4
(package get-activity)
5
- (libraries cmdliner get-activity-lib))
5
+ (libraries cmdliner dune-build-info get-activity-lib))
Original file line number Diff line number Diff line change @@ -68,7 +68,12 @@ let period =
68
68
in
69
69
Term. (const f $ from $ to_ $ last_week)
70
70
71
- let info = Cmd. info " get-activity"
71
+ let version =
72
+ match Build_info.V1. version () with
73
+ | None -> " dev"
74
+ | Some v -> Build_info.V1.Version. to_string v
75
+
76
+ let info = Cmd. info " get-activity" ~version
72
77
73
78
let run period : unit =
74
79
match mode with
Original file line number Diff line number Diff line change 10
10
(synopsis " Collect activity as markdown" )
11
11
( depends
12
12
( cmdliner ( >= 1 .1.1) )
13
+ dune-build-info
13
14
( get-activity-lib ( = :version ) ) ) )
14
15
15
16
( package
Original file line number Diff line number Diff line change @@ -8,6 +8,7 @@ bug-reports: "https://github.com/tarides/get-activity/issues"
8
8
depends: [
9
9
"dune" {>= "2.8"}
10
10
"cmdliner" {>= "1.1.1"}
11
+ "dune-build-info"
11
12
"get-activity-lib" {= version}
12
13
"odoc" {with-doc}
13
14
]
You can’t perform that action at this time.
0 commit comments