diff options
author | Karen Arutyunov <karen@codesynthesis.com> | 2018-09-08 17:46:57 +0300 |
---|---|---|
committer | Karen Arutyunov <karen@codesynthesis.com> | 2018-09-08 21:00:05 +0300 |
commit | d63e34a7e8612dc69ae25f3d3903ba04cc808bf7 (patch) | |
tree | a70540d6d7ec2b9ce72eae52d83ff35bcf150c1c /mod/options.cli | |
parent | 70c1cdfd8f34472761fe5ec97f0713990c1b4f5b (diff) |
Add support for root global and tenant views
Diffstat (limited to 'mod/options.cli')
-rw-r--r-- | mod/options.cli | 25 |
1 files changed, 22 insertions, 3 deletions
diff --git a/mod/options.cli b/mod/options.cli index 619df66..12f577c 100644 --- a/mod/options.cli +++ b/mod/options.cli @@ -311,7 +311,8 @@ namespace brep // Handler options. // - class package_search: search, package_db, page, handler + + class packages: search, package_db, page, handler { string search-title = "Packages" { @@ -532,6 +533,21 @@ namespace brep class repository_root: handler { + string root-global-view = "packages" + { + "<service>", + "The default view to display for the global repository root. The + <service> argument is one of the supported services (\c{packages}, + \c{builds}, \c{submit}, \c{ci}, etc)." + } + + string root-tenant-view = "packages" + { + "<service>" + "The default view to display for the tenant repository root. The + <service> argument is one of the supported services (\c{packages}, + \c{builds}, \c{submit}, \c{ci}, etc)." + } }; } @@ -542,7 +558,7 @@ namespace brep // Use parameters long names in the C++ code, short aliases (if present) // in HTTP URL. // - class package_search + class packages { // Display package search result list starting from this page. // @@ -550,7 +566,10 @@ namespace brep // Package search criteria. // - string query | q; + // Note that the packages parameter is renamed to '_' by the root + // handler (see the request_proxy class for details). + // + string q | _; }; class package_details |