@@ -46,7 +46,7 @@ def dispatch_wiki(args: argparse.Namespace, app: CodeAlmanac) -> int:
4646 rows = app .search .search (
4747 SearchPagesRequest (
4848 cwd = Path .cwd (),
49- wiki = args .wiki ,
49+ repository_name = args .wiki ,
5050 query = args .query ,
5151 topics = tuple (args .topic ),
5252 mentions = args .mentions ,
@@ -62,24 +62,28 @@ def dispatch_wiki(args: argparse.Namespace, app: CodeAlmanac) -> int:
6262 return 0
6363 if args .command == "show" :
6464 page = app .pages .show (
65- ShowPageRequest (cwd = Path .cwd (), wiki = args .wiki , slug = args .page )
65+ ShowPageRequest (cwd = Path .cwd (), repository_name = args .wiki , slug = args .page )
6666 )
6767 render_page (page , args )
6868 return 0
6969 if args .command == "topics" :
7070 return dispatch_topics (args , app )
7171 if args .command == "health" :
72- report = app .health .check (HealthCheckRequest (cwd = Path .cwd (), wiki = args .wiki ))
72+ report = app .health .check (
73+ HealthCheckRequest (cwd = Path .cwd (), repository_name = args .wiki )
74+ )
7375 render_health (report , json_output = args .json )
7476 return 0
7577 if args .command == "validate" :
7678 result = app .health .validate (
77- ValidateWikiRequest (cwd = Path .cwd (), wiki = args .wiki )
79+ ValidateWikiRequest (cwd = Path .cwd (), repository_name = args .wiki )
7880 )
7981 render_validate (result , json_output = args .json )
8082 return 0 if result .ok else 1
8183 if args .command == "reindex" :
82- result = app .index .reindex (ReindexRequest (cwd = Path .cwd (), wiki = args .wiki ))
84+ result = app .index .reindex (
85+ ReindexRequest (cwd = Path .cwd (), repository_name = args .wiki )
86+ )
8387 render_reindex (result , json_output = args .json )
8488 return 0
8589 if args .command == "serve" :
@@ -88,7 +92,7 @@ def dispatch_wiki(args: argparse.Namespace, app: CodeAlmanac) -> int:
8892 result = app .tagging .tag (
8993 TagPageRequest (
9094 cwd = Path .cwd (),
91- wiki = args .wiki ,
95+ repository_name = args .wiki ,
9296 slug = args .page ,
9397 topics = tuple (args .topics ),
9498 )
@@ -99,7 +103,7 @@ def dispatch_wiki(args: argparse.Namespace, app: CodeAlmanac) -> int:
99103 result = app .tagging .untag (
100104 UntagPageRequest (
101105 cwd = Path .cwd (),
102- wiki = args .wiki ,
106+ repository_name = args .wiki ,
103107 slug = args .page ,
104108 topics = tuple (args .topics ),
105109 )
0 commit comments