Commit c5c5d950 authored by Seblu's avatar Seblu
Browse files

Print modes use new downstream_* functions

parent 5e185bce
Loading
Loading
Loading
Loading
+1 −1
Original line number Diff line number Diff line
@@ -58,7 +58,7 @@ def parse_argv():
    p_sync.add_argument("packages", nargs='*', help="only sync these packages")
    p_sync.set_defaults(func=command_sync)
    # modes parser
    p_modes = sp_main.add_parser("modes", aliases=["mo"],
    p_modes = sp_main.add_parser("modes",
                                 help="list check against modes")
    p_modes.set_defaults(func=command_modes)
    # report parser
+4 −3
Original line number Diff line number Diff line
@@ -328,10 +328,11 @@ class VersionController(object):
            else:
                print(name)

    def print_modes(self):
    @staticmethod
    def print_modes():
        '''Print comparaison modes'''
        for name in sorted(self.compare_table.keys()):
            print(name)
        for mode in fnmatch.filter(dir(VersionController), "get_version_downstream_*"):
            print(mode[23:])

    def print_versions(self, only_new=False, not_in_cache=False):
        '''Print versions'''