Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

feat(peridot-cli/task-info): fetch and display task details #196

Open
wants to merge 1 commit into
base: 07-25-wip_dump_logs_from_a_given_parent_task_id
Choose a base branch
from

Conversation

NeilHanlon
Copy link
Member

@NeilHanlon NeilHanlon commented Jul 27, 2024

TL;DR

Added a new task_info command integrated with the tablewriter library to generate ASCII tables.

What changed?

  • Updated go.mod and go.sum to include github.com/olekukonko/tablewriter v0.0.5 as an indirect dependency.
  • Introduced a new file peridot/cmd/v1/peridot/task_info.go implementing the task_info command, which uses tablewriter to output task information in a table format.

@resf-prow
Copy link
Contributor

resf-prow bot commented Jul 27, 2024

Skipping CI for Draft Pull Request.
If you want CI signal for your change, please convert it to an actual PR.
You can still manually trigger a test run with /test all

@resf-prow
Copy link
Contributor

resf-prow bot commented Jul 27, 2024

[APPROVALNOTIFIER] This PR is APPROVED

This pull-request has been approved by: NeilHanlon

The full list of commands accepted by this bot can be found here.

The pull request process is described here

Needs approval from an approver in each of these files:

Approvers can indicate their approval by writing /approve in a comment
Approvers can cancel approval by writing /approve cancel in a comment

@resf-prow resf-prow bot added the approved label Jul 27, 2024
Copy link
Member Author

NeilHanlon commented Jul 27, 2024

Warning

This pull request is not mergeable via GitHub because a downstack PR is open. Once all requirements are satisfied, merge this PR as a stack on Graphite.
Learn more

This stack of pull requests is managed by Graphite. Learn more about stacking.

@NeilHanlon NeilHanlon marked this pull request as ready for review July 27, 2024 02:25
@NeilHanlon NeilHanlon force-pushed the 07-25-wip_dump_logs_from_a_given_parent_task_id branch from 2ede824 to 0d3255c Compare July 27, 2024 02:40
@NeilHanlon NeilHanlon force-pushed the 07_27-fetch_and_display_task_details branch 2 times, most recently from 85618a5 to 1f14c9f Compare July 27, 2024 03:20
given a task ID, fetch its details and display them to a table or to
json with `-o json`. Table view also adds a calculated task duration and
can optionally include the submitter information as well as a link to
logs for the task.

* --no-color - to skip colorizing output
* --L|--logs - include column with link to logs
* --submitter - show submitter
* --no-wait - control whether to wait until a task completes to output
  (table mode)
@NeilHanlon NeilHanlon force-pushed the 07_27-fetch_and_display_task_details branch from 1f14c9f to e7b15b3 Compare July 31, 2024 21:15
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant