Skip to content

Commit

Permalink
Merge pull request #6268 from rjbou/cli24
Browse files Browse the repository at this point in the history
Add cli version for 2.4
  • Loading branch information
kit-ty-kate authored Oct 25, 2024
2 parents 0dcd3ea + ab1bdb9 commit 2a57765
Show file tree
Hide file tree
Showing 5 changed files with 5 additions and 1 deletion.
1 change: 1 addition & 0 deletions master_changes.md
Original file line number Diff line number Diff line change
Expand Up @@ -14,6 +14,7 @@ users)
* Bump the version of opam to 2.4.0~alpha1~dev [#6204 @kit-ty-kate]

## Global CLI
* Add cli version 2.4 [#6268 @mbarbin @rjbou]

## Plugins

Expand Down
1 change: 1 addition & 0 deletions src/client/opamArg.mli
Original file line number Diff line number Diff line change
Expand Up @@ -25,6 +25,7 @@ val cli2_0: OpamCLIVersion.t
val cli2_1: OpamCLIVersion.t
val cli2_2: OpamCLIVersion.t
val cli2_3: OpamCLIVersion.t
val cli2_4: OpamCLIVersion.t

(* [cli_from ?platform ?experimental since] validity flag since [since], and no
removal version. If [experimental] is true, it is marked as is (warning and
Expand Down
1 change: 1 addition & 0 deletions src/client/opamArgTools.ml
Original file line number Diff line number Diff line change
Expand Up @@ -16,6 +16,7 @@ let cli2_0 = OpamCLIVersion.of_string "2.0"
let cli2_1 = OpamCLIVersion.of_string "2.1"
let cli2_2 = OpamCLIVersion.of_string "2.2"
let cli2_3 = OpamCLIVersion.of_string "2.3"
let cli2_4 = OpamCLIVersion.of_string "2.4"

type subplatform = [ `windows | `unix ]
type platform = [ `all | subplatform ]
Expand Down
1 change: 1 addition & 0 deletions src/client/opamArgTools.mli
Original file line number Diff line number Diff line change
Expand Up @@ -29,6 +29,7 @@ val cli2_0: OpamCLIVersion.t
val cli2_1: OpamCLIVersion.t
val cli2_2: OpamCLIVersion.t
val cli2_3: OpamCLIVersion.t
val cli2_4: OpamCLIVersion.t

val mk_flag:
cli:OpamCLIVersion.Sourced.t -> validity -> section:string -> string list ->
Expand Down
2 changes: 1 addition & 1 deletion src/client/opamCLIVersion.ml
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@

type t = int * int

let supported_versions = [(2, 0); (2, 1); (2,2); (2,3)]
let supported_versions = [(2, 0); (2, 1); (2,2); (2,3); (2,4)]

let is_supported v = List.mem v supported_versions

Expand Down

0 comments on commit 2a57765

Please sign in to comment.