git-ecosystem / git-bundle-server

A web server & management CLI to host Git bundles for use with Git's "bundle URIs" feature
Other
43 stars 20 forks source link

Add `list` and `repair` commands #38

Closed vdye closed 1 year ago

vdye commented 1 year ago

Part of #35

Summary

This pull request introduces two new commands to the bundle server CLI: list and repair. The list command lists the route and remote URL pairs for each route active within the bundle server. It is implemented by the first three commits:

The repair command is meant to be a general-purpose tool for keeping the bundle server internally consistent. The first subcommand (implemented here) is the routes option, which checks the repo content in the reporoot directory and compares it to the routes file. The remaining commits implement it:

Future work

There's lots of room for future improvement on these commands/things related to them, including: