Skip to content

Commit

Permalink
feat: add arg migrate to inventory_backend parser
Browse files Browse the repository at this point in the history
  • Loading branch information
MatteoVoges committed Feb 2, 2024
1 parent eb4bcd3 commit 221f259
Showing 1 changed file with 6 additions and 0 deletions.
6 changes: 6 additions & 0 deletions kapitan/cli.py
Original file line number Diff line number Diff line change
Expand Up @@ -111,6 +111,12 @@ def build_parser():
choices=AVAILABLE_BACKENDS.keys(),
help="Select the inventory backend to use (default=reclass)",
)
inventory_backend_parser.add_argument(
"--migrate",
action="store_true",
default=from_dot_kapitan("inventory_backend", "migrate", False),
help="Migrate your inventory to your selected inventory backend.",
)

eval_parser = subparser.add_parser("eval", aliases=["e"], help="evaluate jsonnet file")
eval_parser.add_argument("jsonnet_file", type=str)
Expand Down

0 comments on commit 221f259

Please sign in to comment.