@@ -474,6 +474,35 @@ pub fn main() -> Result<()> {
474474 } ,
475475 } ,
476476 } ,
477+ Subcommands :: Verify {
478+ args :
479+ free:: pack:: VerifyOptions {
480+ statistics,
481+ algorithm,
482+ decode,
483+ re_encode,
484+ } ,
485+ } => prepare_and_run (
486+ "repository-verify" ,
487+ verbose,
488+ progress,
489+ progress_keep_open,
490+ core:: repository:: verify:: PROGRESS_RANGE ,
491+ move |progress, out, _err| {
492+ core:: repository:: verify:: integrity (
493+ repository ( ) ?. into ( ) ,
494+ out,
495+ progress,
496+ & should_interrupt,
497+ core:: repository:: verify:: Context {
498+ output_statistics : statistics. then ( || format) ,
499+ algorithm,
500+ verify_mode : verify_mode ( decode, re_encode) ,
501+ thread_limit,
502+ } ,
503+ )
504+ } ,
505+ ) ,
477506 Subcommands :: Revision { cmd } => match cmd {
478507 revision:: Subcommands :: Explain { spec } => prepare_and_run (
479508 "repository-commit-describe" ,
@@ -625,35 +654,6 @@ pub fn main() -> Result<()> {
625654 } ,
626655 ) ,
627656 } ,
628- repo:: Subcommands :: Verify {
629- args :
630- free:: pack:: VerifyOptions {
631- statistics,
632- algorithm,
633- decode,
634- re_encode,
635- } ,
636- } => prepare_and_run (
637- "repository-verify" ,
638- verbose,
639- progress,
640- progress_keep_open,
641- core:: repository:: verify:: PROGRESS_RANGE ,
642- move |progress, out, _err| {
643- core:: repository:: verify:: integrity (
644- repository ( ) ?. into ( ) ,
645- out,
646- progress,
647- & should_interrupt,
648- core:: repository:: verify:: Context {
649- output_statistics : statistics. then ( || format) ,
650- algorithm,
651- verify_mode : verify_mode ( decode, re_encode) ,
652- thread_limit,
653- } ,
654- )
655- } ,
656- ) ,
657657 } ,
658658 } ?;
659659 Ok ( ( ) )
0 commit comments