Added force option to set-version
This commit is contained in:
parent
a593f34cde
commit
3a1630b687
@ -35,6 +35,11 @@ class Application(ApplicationABC):
|
|||||||
version = {}
|
version = {}
|
||||||
branch = ""
|
branch = ""
|
||||||
suffix = ""
|
suffix = ""
|
||||||
|
force = False
|
||||||
|
if '--force' in args:
|
||||||
|
args.remove('--force')
|
||||||
|
force = True
|
||||||
|
|
||||||
if len(args) > 1:
|
if len(args) > 1:
|
||||||
Console.error(f'Unexpected argument(s): {", ".join(args[1:])}')
|
Console.error(f'Unexpected argument(s): {", ".join(args[1:])}')
|
||||||
return
|
return
|
||||||
@ -63,7 +68,7 @@ class Application(ApplicationABC):
|
|||||||
|
|
||||||
try:
|
try:
|
||||||
for project in self._workspace.projects:
|
for project in self._workspace.projects:
|
||||||
if project not in diff_paths and String.convert_to_snake_case(project) not in diff_paths:
|
if project not in diff_paths and String.convert_to_snake_case(project) not in diff_paths and not force:
|
||||||
Console.write_line(f'Skipping {project} due to missing changes')
|
Console.write_line(f'Skipping {project} due to missing changes')
|
||||||
continue
|
continue
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user