You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Issue:
When the job names, commands, or other column values in gridtk list are lengthy, the output table is difficult to read as it spans multiple lines, making the presentation cluttered and unclear. This can be frustrating when trying to quickly parse job-related information.
Suggested Improvement:
By default, we should implement a more user-friendly approach to formatting, such as limiting the width of selected columns (e.g., job-name, command) to fit within the current terminal window size or a fixed size of 80. Standard ellipses or truncation could be used to indicate when content is cut off. A flag or option can be provided for users to view the full output when needed.
This enhancement would improve readability without requiring users to resize their terminal or handling multiline, mixed-format outputs for each job.
Example output illustrating the problem:
In certain cases, long job names and commands can cause individual rows to break across multiple display lines:
Fixes#13
Adjust the `gridtk list` output to fit terminal width and add a `--full-output` option.
* **src/gridtk/cli.py**
- Update the `list_jobs` function to adjust column widths based on terminal size.
- Add logic to truncate long content with ellipses in the `list_jobs` function.
- Add a new option `--full-output` to the `list_jobs` command to view the full output without truncation.
* **tests/test_gridtk.py**
- Add unit tests to verify the new behavior of the `gridtk list` command.
- Add unit tests to verify the `--full-output` option for the `gridtk list` command.
* **README.md**
- Update the documentation to reflect the new behavior of the `gridtk list` command.
- Add information about the `--full-output` option for the `gridtk list` command.
* **.devcontainer.json**
- Add a devcontainer configuration file with tasks for testing, building, and launching the project.
---
For more details, open the [Copilot Workspace session](https://copilot-workspace.githubnext.com/idiap/gridtk/issues/13?shareId=XXXX-XXXX-XXXX-XXXX).
Issue:
When the job names, commands, or other column values in
gridtk list
are lengthy, the output table is difficult to read as it spans multiple lines, making the presentation cluttered and unclear. This can be frustrating when trying to quickly parse job-related information.Suggested Improvement:
By default, we should implement a more user-friendly approach to formatting, such as limiting the width of selected columns (e.g., job-name, command) to fit within the current terminal window size or a fixed size of 80. Standard ellipses or truncation could be used to indicate when content is cut off. A flag or option can be provided for users to view the full output when needed.
This enhancement would improve readability without requiring users to resize their terminal or handling multiline, mixed-format outputs for each job.
Example output illustrating the problem:
In certain cases, long job names and commands can cause individual rows to break across multiple display lines:
The text was updated successfully, but these errors were encountered: