Skip to content

Commit c40cd32

Browse files
committed
Connect simple versions of the new 'sync' and 'status' commands
Signed-off-by: Matthew Ballance <matt.ballance@gmail.com>
1 parent 0d51c6e commit c40cd32

File tree

1 file changed

+11
-1
lines changed

1 file changed

+11
-1
lines changed

src/ivpm/__main__.py

+11-1
Original file line numberDiff line numberDiff line change
@@ -18,9 +18,11 @@
1818
from .cmds.cmd_update import CmdUpdate
1919
from .cmds.cmd_git_status import CmdGitStatus
2020
from .cmds.cmd_git_update import CmdGitUpdate
21+
from .cmds.cmd_pkg_info import CmdPkgInfo
2122
from .cmds.cmd_share import CmdShare
2223
from .cmds.cmd_snapshot import CmdSnapshot
23-
from .cmds.cmd_pkg_info import CmdPkgInfo
24+
from .cmds.cmd_status import CmdStatus
25+
from .cmds.cmd_sync import CmdSync
2426

2527

2628
def get_parser(parser_ext : List = None, options_ext : List = None):
@@ -119,6 +121,14 @@ def get_parser(parser_ext : List = None, options_ext : List = None):
119121
help="Specifies the directory where the snapshot will be created")
120122
subcommands["snapshot"] = snapshot_cmd
121123

124+
sync_cmd = subparser.add_parser("sync",
125+
help="Synchronizes dependent packages with an upstream source (if available)")
126+
sync_cmd.set_defaults(func=CmdSync())
127+
128+
status_cmd = subparser.add_parser("status",
129+
help="Checks the status of sub-dependencies such as git repositories")
130+
status_cmd.set_defaults(func=CmdStatus())
131+
122132
if parser_ext is not None:
123133
for ext in parser_ext:
124134
ext(subparser)

0 commit comments

Comments
 (0)