File tree Expand file tree Collapse file tree 1 file changed +21
-5
lines changed
Expand file tree Collapse file tree 1 file changed +21
-5
lines changed Original file line number Diff line number Diff line change @@ -35,6 +35,27 @@ def main(ctx):
3535 pass
3636
3737
38+ @main .command ()
39+ @click .option (
40+ "--artifact-ids" ,
41+ required = True ,
42+ type = str ,
43+ help = """
44+ Artifact IDs whose version needs to update, separated by comma.
45+ """ ,
46+ )
47+ @click .option (
48+ "--versions" ,
49+ required = False ,
50+ default = "./versions.txt" ,
51+ type = str ,
52+ help = """
53+ The path to the versions.txt.
54+ """ ,
55+ )
56+ def bump_snapshot_version (artifact_ids : str , versions : str ) -> None :
57+ bump_version (artifact_ids , "snapshot" , versions )
58+
3859@main .command ()
3960@click .option (
4061 "--artifact-ids" ,
@@ -62,11 +83,6 @@ def main(ctx):
6283 The path to the versions.txt.
6384 """ ,
6485)
65-
66- def bump_snapshot_version (artifact_ids : str , version_type : str , versions : str ) -> None :
67- # version_type is ignored for snapshot version bumping.
68- bump_version (artifact_ids , "snapshot" , versions )
69-
7086def bump_released_version (artifact_ids : str , version_type : str , versions : str ) -> None :
7187 bump_version (artifact_ids , version_type , versions )
7288
You can’t perform that action at this time.
0 commit comments