flux-framework / flux-accounting

bank/accounting interface for the Flux resource manager
https://flux-framework.readthedocs.io/projects/flux-accounting/en/latest/index.html
GNU Lesser General Public License v3.0
3 stars 10 forks source link

command suite: add new `list-projects` command #496

Closed cmoussa1 closed 1 month ago

cmoussa1 commented 1 month ago

Problem

There currently exists no way to list all of the currently registered projects in the flux-accounting database.


This PR adds a new command to the flux-accounting command suite, list-projects, that creates a table of all of the currently registered projects in the flux-accounting database.

I've also added a couple sharness tests to t1025-flux-account-projects.t that check the output of calling list-projects with just the default project listed and after registering a couple of other projects.

cmoussa1 commented 1 month ago

Thanks for reviewing @wihobbs! Setting MWP here too