@Command(name="describe",description="Show detailed job information")publicclassDescribeCommandextendsBaseCommand{@Parameters(index="0",description="Job ID")privateStringjobId;@Option(names={"--logs"},description="Include log file contents")privatebooleanincludeLogs;@Option(names={"--manifest"},description="Show full manifest")privatebooleanshowManifest;@OverridepublicIntegercall(){// 1. Load job by ID// 2. Format detailed output// 3. Optionally include logs}}
2. Usage Examples
# Basic describe
barn describe job-9f83c
# Include logs
barn describe job-9f83c --logs
# Show manifest
barn describe job-9f83c --manifest
# JSON output
barn describe job-9f83c --output=json
Blocking a user prevents them from interacting with repositories, such as opening or commenting on pull requests or issues. Learn more about blocking a user.
Imported from GitHub samson-media/barn#11 — opened by @daniel-samson on 2026-01-21 12:39:06 UTC
Overview
Implement the
barn describecommand that shows detailed information about a specific job.Context
README.md(barn describe examples),docs/jobs.md(job directory layout)Requirements
1. Describe Command
com.samsonmedia.barn.cli.DescribeCommand.java:2. Usage Examples
3. Human-Readable Output
4. JSON Output
5. Log Display
When
--logsis specified:6. Error Handling
7. Tests Required
DescribeCommandTest.java: Test output formatting, error casesAcceptance Criteria
barn describe <id>shows detailed info--logsincludes log file contents--manifestshows full manifest JSONmvn verifypassesImplementation Notes
For relative time display:
For log tailing:
Definition of Done
@daniel-samson commented on 2026-01-21 14:29:08 UTC:
Implemented barn describe command with tests