Skip to content

Add an argument to only display one table of cluv status#68

Open
hvdbm wants to merge 9 commits into
masterfrom
feat/split-status-tables-display
Open

Add an argument to only display one table of cluv status#68
hvdbm wants to merge 9 commits into
masterfrom
feat/split-status-tables-display

Conversation

@hvdbm
Copy link
Copy Markdown
Collaborator

@hvdbm hvdbm commented May 19, 2026

Summary

  • Add the argument table to cluv status to only show the table that the user need. 3 possible options :
    • cluster, show only the cluster table with the legend.
    • job, show only the job table.
    • all, show the two tables.
  • Remove the argument clusters of cluv status. The command will now automatically try to get the infos of the clusters specified in the config.
  • Merge Cluster and Status columns.
  • Rework title style of the cluster and job tables.

Example

Capture d’écran, le 2026-05-29 à 15 00 17

Issues

@codecov-commenter
Copy link
Copy Markdown

codecov-commenter commented May 19, 2026

Codecov Report

❌ Patch coverage is 40.00000% with 18 lines in your changes missing coverage. Please review.
✅ Project coverage is 59.77%. Comparing base (63fc987) to head (e03564f).

Files with missing lines Patch % Lines
cluv/cli/status.py 21.73% 18 Missing ⚠️
Additional details and impacted files
@@             Coverage Diff             @@
##           master      #68       +/-   ##
===========================================
+ Coverage   41.65%   59.77%   +18.12%     
===========================================
  Files          14       14               
  Lines        1078     1069        -9     
===========================================
+ Hits          449      639      +190     
+ Misses        629      430      -199     

☔ View full report in Codecov by Sentry.
📢 Have feedback on the report? Share it here.

🚀 New features to boost your workflow:
  • ❄️ Test Analytics: Detect flaky tests, report on failures, and find test suite problems.

@hvdbm hvdbm marked this pull request as ready for review May 20, 2026 15:47
@hvdbm hvdbm requested a review from lebrice May 20, 2026 15:48
@lebrice
Copy link
Copy Markdown
Contributor

lebrice commented May 20, 2026

How about an optional positional argument instead?

Like cluv status jobs instead of cluv status --show jobs?

@hvdbm
Copy link
Copy Markdown
Collaborator Author

hvdbm commented May 20, 2026

How about an optional positional argument instead?

Like cluv status jobs instead of cluv status --show jobs?

It's an option, but it will not work with the current arg_parser, where the clusters argument can be a list of n cluster names :

    status_parser.add_argument(
        "clusters",
        nargs="*",
        default=None,
        metavar="<cluster>",
        help=("Cluster(s) to query. Leave empty to query all clusters with an active connection."),
    )

So in the command cluv status mila rorqual jobs the jobs part will be ignored.

@hvdbm hvdbm force-pushed the feat/split-status-tables-display branch from 75f76fd to 01e5a79 Compare May 29, 2026 14:37
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Add an arg to cluv status to only show the clusters table or the jobs table

3 participants