Repository navigation
feat(cli): open each run on its command and its summary on how the run went, and group the help - #342
Merged
Merged
Conversation
…n went, and group the help # Conflicts: # src/Chartula.Cli/Program.cs diff --git c/docs/cli.md i/docs/cli.md index cc413d9..989b2a7 100644 --- c/docs/cli.md +++ i/docs/cli.md @@ -65,6 +65,7 @@ A value you did not pass is announced on stderr before the run starts, so `gener ```console $ chartula preview +chartula · preview Using tag v1.3.0, the nearest tag reachable from HEAD. Pass --tag to choose another. Using repository owner/name, from the 'origin' remote. Pass --repo to choose another. ``` @@ -137,7 +138,8 @@ Reads the range and its pull requests, decides every fact the way `generate` doe ```console $ chartula preview --tag v0.1.0-preview.3 -Preview of v0.1.0-preview.3 - no model call was made, and nothing was written or published. +Preview of v0.1.0-preview.3 +No model calls · no files written · no publication Release: 7 commits, 7 pull requests, 6 facts (6 with a description, 15,083 characters) @@ -176,6 +178,17 @@ A token that cannot publish stops the run before the first model call ([What `ge Publishing is still the last step, so when GitHub refuses it for another reason, the files are already written. The summary lists them under `Wrote:`, names the refusal under `Not published:`, and the run exits with 1. +The summary on stdout opens on how the run went, then shows each rendering under its audience's name: + +| First line | When | +| --- | --- | +| `Generated v1.3.0.` | Every audience rendered, and the checks flagged nothing. | +| `Generated v1.3.0 with review flags: 2 in customer.` | Every audience rendered, and the checks flagged something; the flags follow their rendering. | +| `Partially generated v1.3.0: 1 of 3 audiences failed.` | Some audiences failed; the ones that rendered are still written. Flags, if any, are named after a semicolon. | +| `No audience rendered for v1.3.0.` | Every audience failed, so nothing was written. | + +"Generated" reports what the run did, not that the text is verified: a run without flags is one in which the checks found nothing ([Costs and checks](costs-and-checks.md)). + ## `chartula doctor` Checks everything a run needs, one line per check in three groups (the repository, the model, GitHub), and says whether a run would start: diff --git c/docs/getting-started.md i/docs/getting-started.md index 0d1bee3..284fc12 100644 --- c/docs/getting-started.md +++ i/docs/getting-started.md @@ -118,7 +118,8 @@ On Chartula's own `v0.1.0-preview.3`: ```console $ chartula preview -Preview of v0.1.0-preview.3 - no model call was made, and nothing was written or published. +Preview of v0.1.0-preview.3 +No model calls · no files written · no publication Release: 7 commits, 7 pull requests, 6 facts (6 with a description, 15,083 characters) @@ -158,14 +159,14 @@ Its report, shortened: ```console $ chartula generate -Generated changelog for v1.3.0 +Generated v1.3.0 with review flags: 1 in customer. ---- Technical --- +Technical ### Added - ... ---- Customer --- +Customer description: ... ### What's New diff --git c/docs/troubleshooting.md i/docs/troubleshooting.md index d2d1f62..0305ca9 100644 --- c/docs/troubleshooting.md +++ i/docs/troubleshooting.md @@ -172,12 +172,12 @@ A failed call names the provider, the address it asked, the model and the status Audiences that failed for the same reason say it once: ```text ---- Technical --- +Technical (failed) Changelog generation for 'v1.3.0' failed: openai-compatible at http://localhost:11434/v1/chat/completions answered 404 Not Found for model 'gpt-luna'. Either the endpoint does not serve that model id (check llm.model), or Chartula__Llm__BaseUrl is not the address of this provider's API - another provider's, or a wrong path such as a missing /v1. The endpoint said: ... ---- Customer --- +Customer (failed) The same as Technical. ``` diff --git c/src/Chartula.Cli/Commands/ReleaseCommand.cs i/src/Chartula.Cli/Commands/ReleaseCommand.cs index adb8df7..fc1b034 100644 --- c/src/Chartula.Cli/Commands/ReleaseCommand.cs +++ i/src/Chartula.Cli/Commands/ReleaseCommand.cs @@ -1,5 +1,6 @@ using System.Globalization; using System.Text; +using Chartula.Cli.Terminal; using Chartula.Core.Facts; using Chartula.Core.Llm; using Chartula.Core.Observability; @@ -23,18 +24,20 @@ internal static class ReleaseCommand PipelineMode mode, ReleaseRequest request, TextWriter output, - CancellationToken cancellationToken) + CancellationToken cancellationToken, + TerminalProfile? profile = null) { + TerminalProfile shown = profile ?? TerminalProfile.Plain; try { ReleaseOutcome outcome = await pipeline.RunAsync(request, mode, cancellationToken); if (outcome.Preview is { } preview) { - output.Write(FormatPreview(outcome, preview)); + output.Write(FormatPreview(outcome, preview, shown)); return 0; } - output.Write(Format(outcome)); + output.Write(Format(outcome, shown)); // Exit with 1 when a requested audience or the publication failed. // Scripts and CI jobs read the exit code, not the output, so a failure must @@ -60,14 +63,12 @@ internal static class ReleaseCommand } } - private static string Format(ReleaseOutcome outcome) + private static string Format(ReleaseOutcome outcome, TerminalProfile profile) { StringBuilder builder = new(); int failed = outcome.Renderings.Count(audience => !audience.Success); bool nothingRendered = failed > 0 && failed == outcome.Renderings.Count; - builder.AppendLine(nothingRendered - ? $"No changelog generated for {outcome.Tag}: no audience rendered." - : $"Generated changelog for {outcome.Tag}"); + builder.AppendLine(StatusMarks.Heading(Headline(outcome, failed, nothingRendered), profile)); builder.AppendLine(); // Print a repeated error only once. Two audiences failing the same way, for @@ -76,7 +77,7 @@ internal static class ReleaseCommand Dictionary<string, Audience> firstFailedWith = []; foreach (AudienceOutcome audience in outcome.Renderings) { - builder.AppendLine($"--- {audience.Audience} ---"); + builder.AppendLine(StatusMarks.Heading(audience.Audience.ToString(), profile)); if (!audience.Success) { string error = audience.Error ?? string.Empty; @@ -132,12 +133,42 @@ internal static class ReleaseCommand return builder.ToString(); } + /// <summary> + /// The first line says how the run went, not only that it ran (#339): flags or a failed + /// audience are the first thing to know, before the texts they concern. + /// "Generated" is a report on the run, not a seal: a run without flags is one in which + /// the checks found nothing, which does not make the text verified. + /// </summary> + private static string Headline(ReleaseOutcome outcome, int failed, bool nothingRendered) + { + if (nothingRendered) + { + return $"No audience rendered for {outcome.Tag}."; + } + + List<string> flagged = [.. outcome.Renderings + .Where(static audience => audience.Success && audience.Flags.Count > 0) + .Select(static audience => $"{Number(audience.Flags.Count)} in {Name(audience.Audience)}")]; + string flags = flagged.Count == 0 ? string.Empty : $"review flags: {string.Join(", ", flagged)}"; + + if (failed > 0) + { + string partial = $"Partially generated {outcome.Tag}: {failed} of {outcome.Renderings.Count} audiences failed"; + return flags.Length == 0 ? partial + "." : $"{partial}; {flags}."; + } + + return flags.Length == 0 ? $"Generated {outcome.Tag}." : $"Generated {outcome.Tag} with {flags}."; + } + // Each fact on two lines, the audiences below it, so a long title does not push them // out of sight. Audience names are written as --audience takes them. - private static string FormatPreview(ReleaseOutcome outcome, ReleasePreview preview) + private static string FormatPreview(ReleaseOutcome outcome, ReleasePreview preview, TerminalProfile profile) { StringBuilder builder = new(); - builder.AppendLine($"Preview of {outcome.Tag} - no model call was made, and nothing was written or published."); + builder.AppendLine(StatusMarks.Heading($"Preview of {outcome.Tag}", profile)); + builder.AppendLine(profile.Unicode + ? "No model calls · no files written · no publication" + : "No model calls, no files written, no publication"); builder.AppendLine(); if (outcome.Metrics.Scope is { } scope) { diff --git c/src/Chartula.Cli/Program.cs i/src/Chartula.Cli/Program.cs index 1e79c5a..87f68d2 100644 --- c/src/Chartula.Cli/Program.cs +++ i/src/Chartula.Cli/Program.cs @@ -56,13 +56,13 @@ internal static class Program if (args[0] is DoctorCommand.Name) { // The report goes to stdout, so stdout decides how it is marked. - TerminalProfile report = TerminalProfile.Detect( + TerminalProfile doctorReport = TerminalProfile.Detect( Console.IsOutputRedirected, Environment.GetEnvironmentVariables(), CommandLineArguments.HasFlag(args, TerminalProfile.PlainFlag), Console.OutputEncoding); return await DoctorCommand.RunAsync( - args, Directory.GetCurrentDirectory(), Environment.GetEnvironmentVariables(), Console.Out, profile: report); + args, Directory.GetCurrentDirectory(), Environment.GetEnvironmentVariables(), Console.Out, profile: doctorReport); } PipelineMode mode = ParseMode(args[0], args) @@ -80,17 +80,19 @@ internal static class Program return 1; } + // Progress and notices go to stderr and the report to stdout, so each stream + // decides how its own lines look. + bool plain = CommandLineArguments.HasFlag(args, TerminalProfile.PlainFlag); + TerminalProfile progress = TerminalProfile.Detect( + Console.IsErrorRedirected, Environment.GetEnvironmentVariables(), plain, Console.OutputEncoding); + TerminalProfile report = TerminalProfile.Detect( + Console.IsOutputRedirected, Environment.GetEnvironmentVariables(), plain, Console.OutputEncoding); + IConfiguration configuration; ServiceProvider services; try { configuration = BuildConfiguration(); - // Progress goes to stderr, so stderr decides whether it moves. - TerminalProfile progress = TerminalProfile.Detect( - Console.IsErrorRedirected, - Environment.GetEnvironmentVariables(), - CommandLineArguments.HasFlag(args, TerminalProfile.PlainFlag), - Console.OutputEncoding); services = BuildServices(configuration, requireApiKey: mode != PipelineMode.Preview, progress); } catch (InvalidOperationException ex) @@ -102,6 +104,8 @@ internal static class Program using (services) { + Console.Error.WriteLine(StatusMarks.Heading( + progress.Unicode ? $"chartula · {args[0]}" : $"chartula {args[0]}", progress)); string directory = Directory.GetCurrentDirectory(); GitCliRepositoryReader checkout = services.GetRequiredService<GitCliRepositoryReader>(); ReleaseTarget? target = await ReleaseTarget.ResolveAsync( @@ -136,7 +140,8 @@ internal static class Program ReplacePublished = CommandLineArguments.HasFlag(args, CommandLineArguments.ReplacePublished), }, Console.Out, - CancellationToken.None); + CancellationToken.None, + report); } } @@ -207,9 +212,9 @@ internal static class Program /// </summary> internal static string Usage => """ - Chartula - multi-audience, grounded changelog generator. + chartula - multi-audience, grounded changelog generator. - Usage: + Commands: chartula preview [options] Show the facts and what generate would send. Free. chartula generate [options] Produce and write the outputs. chartula doctor [options] Check the setup a run needs, before a run spends anything. @@ -217,7 +222,7 @@ internal static class Program Run it from a checkout of the repository the release belongs to. - Options: + Which release: --tag <tag> The release tag. Default: the nearest tag reachable from HEAD. --repo <o/n> The GitHub repository, as owner/name. Default: read from the 'origin' remote. @@ -226,7 +231,15 @@ internal static class Program first commit for a first tag. --yes Confirm a first tag or a large range up front, for a run without a terminal to ask on. + + What a run writes: + --audience <a> Render only this audience: technical, customer or product. + Repeat it, or separate them with commas. Default: + technical and customer; product renders only when named. + An output whose audience was not rendered is not written. --no-publish Write every file, but publish no GitHub release notes. + + How it looks: --plain Plain lines only: no spinner, no colour, no symbols beyond ASCII. Also the default without a terminal, in CI, with TERM=dumb, and without colour with NO_COLOR set. @@ -239,7 +252,7 @@ internal static class Program technical and customer; product renders only when named. An output whose audience was not rendered is not written. - doctor takes --tag and --repo; --no-publish and --replace-published are for + doctor takes --tag, --repo and --plain; --no-publish and --replace-published are for generate only. An option a command does not take stops before anything starts. diff --git c/tests/Chartula.Cli.Tests/Commands/ArgumentCheckTests.cs i/tests/Chartula.Cli.Tests/Commands/ArgumentCheckTests.cs index 071a361..18a783c 100644 --- c/tests/Chartula.Cli.Tests/Commands/ArgumentCheckTests.cs +++ i/tests/Chartula.Cli.Tests/Commands/ArgumentCheckTests.cs @@ -24,7 +24,7 @@ public sealed class ArgumentCheckTests : IDisposable (int exitCode, string output, string error) = await CliProcess.RunChartulaAsync(_directory, NoCredentials, args); Assert.Equal(0, exitCode); - Assert.StartsWith("Chartula - multi-audience, grounded changelog generator.", output); + Assert.StartsWith("chartula - multi-audience, grounded changelog generator.", output); Assert.Empty(error); } diff --git c/tests/Chartula.Cli.Tests/Commands/PreviewOutputTests.cs i/tests/Chartula.Cli.Tests/Commands/PreviewOutputTests.cs index da7d70b..0b7f61e 100644 --- c/tests/Chartula.Cli.Tests/Commands/PreviewOutputTests.cs +++ i/tests/Chartula.Cli.Tests/Commands/PreviewOutputTests.cs @@ -56,7 +56,7 @@ public sealed class PreviewOutputTests (int exitCode, string text) = await RunAsync(Preview()); Assert.Equal(0, exitCode); - Assert.StartsWith("Preview of v1.0.0 - no model call was made, and nothing was written or published.\n", text); + Assert.StartsWith("Preview of v1.0.0\nNo model calls, no files written, no publication\n\n", text); Assert.Contains("Release: 3 commits, 2 pull requests, 2 facts (1 with a description, 12 characters)\n", text); Assert.Contains("Facts (2):\n #1 Feature: feat: add search\n technical, customer\n", text); Assert.Contains(" #4 Documentation, breaking: docs: rewrite the guide\n in no rendering\n", text); diff --git c/tests/Chartula.Cli.Tests/Commands/ReleaseCommandOutputTests.cs i/tests/Chartula.Cli.Tests/Commands/ReleaseCommandOutputTests.cs index 6e17fa0..78040c0 100644 --- c/tests/Chartula.Cli.Tests/Commands/ReleaseCommandOutputTests.cs +++ i/tests/Chartula.Cli.Tests/Commands/ReleaseCommandOutputTests.cs @@ -83,8 +83,8 @@ public sealed class ReleaseCommandOutputTests (int exitCode, string text) = await RunAsync(PipelineMode.Generate, false, false, false); Assert.Equal(1, exitCode); - Assert.StartsWith("No changelog generated for v1.0.0: no audience rendered.", text); - Assert.DoesNotContain("Generated changelog", text); + Assert.StartsWith("No audience rendered for v1.0.0.", text); + Assert.DoesNotContain("Generated", text); Assert.Contains("Nothing to write.", text); } @@ -164,6 +164,32 @@ public sealed class ReleaseCommandOutputTests StringComparison.Ordinal); } + // #339: the first line says how the run went, before the texts it concerns. + [Fact] + public async Task The_first_line_says_whether_the_checks_flagged_anything_or_an_audience_failed() + { + AudienceOutcome clean = new(Audience.Technical, Success: true, "- Added search", [], Error: null); + AudienceOutcome flagged = new( + Audience.Customer, Success: true, "- Search is here.", [new FaithfulnessFlag("a"), new FaithfulnessFlag("b")], Error: null); + AudienceOutcome failed = new(Audience.Product, Success: false, Text: null, [], Error: "refused"); + + Assert.StartsWith("Generated v1.0.0.\n", await FormatAsync(clean)); + Assert.StartsWith("Generated v1.0.0 with review flags: 2 in customer.\n", await FormatAsync(clean, flagged)); + Assert.StartsWith( + "Partially generated v1.0.0: 1 of 3 audiences failed; review flags: 2 in customer.\n", + await FormatAsync(clean, flagged, failed)); + Assert.StartsWith("Partially generated v1.0.0: 1 of 2 audiences failed.\n", await FormatAsync(clean, failed)); + } + + [Fact] + public async Task Each_rendering_stands_under_its_audience_name() + { + string text = await FormatAsync(new AudienceOutcome(Audience.Technical, Success: true, "### Added\n\n- Added search", [], Error: null)); + + Assert.Contains("\nTechnical\n### Added\n\n- Added search\n", text); + Assert.DoesNotContain("---", text); + } + [Fact] public async Task A_rendering_without_a_description_shows_no_empty_line_for_one() { @@ -228,8 +254,8 @@ public sealed class ReleaseCommandOutputTests Failed(Audience.Technical, Error), Failed(Audience.Customer, Error), Failed(Audience.Product, Error)); Assert.Equal(2, text.Split("answered 404").Length); - Assert.Contains("--- Customer ---\n (failed) The same as Technical.\n", text); - Assert.Contains("--- Product ---\n (failed) The same as Technical.\n", text); + Assert.Contains("Customer\n (failed) The same as Technical.\n", text); + Assert.Contains("Product\n (failed) The same as Technical.\n", text); } [Fact]
goldbarth
force-pushed
the
run-summary-form
branch
from
October 6, 2026 17:45
2eaaa85 to
2b51cce
Compare
goldbarth
added a commit
that referenced
this pull request
Oct 7, 2026
… to date (#344) Follows #335 and #340 to #342, which each added an option to the help; merging them left the help wrong. - **Why:** on `main`, `chartula --help` listed `--replace-published` under "How it looks" and `--audience` twice, once under "What a run writes" and again after `--plain`. Both pull requests had edited the same lines of the help text, and the merge kept parts of each. - **Fix:** `--replace-published` stands under "What a run writes", after `--no-publish`, and the second `--audience` block is gone. No option's text changes. - **A test for the shape:** the help is one string so that a test can check it; `The_help_lists_each_option_once_under_its_group` now holds each group's options, in order, and that each option is listed once. It fails on the help as merged and passes on this one. - **`docs/cli.md`:** the `doctor` status table and the sentence on the last line name a published release as a cause of a warning under GitHub write (#334), next to a token that may not publish. - **`ROADMAP.md`:** #315, #337 and #339 move from "Left before the announcement" to done; what is left is the release that ships them. **Verified:** - `chartula --help` from the built CLI before and after: three groups, every option once. - Nothing else of the merges needed repair: no conflict markers, the build has no warnings, and the suite passed on `main` before this change. Tests: one theory with three cases in `CommandLineArgumentsTests`. All tests pass.
goldbarth
added a commit
that referenced
this pull request
Oct 7, 2026
Follows #344. Step 1 of `docs/development/releasing.md`. - **Why now:** the launch points are merged, and the binary people install is still `0.1.0-preview.3`, which has none of them. The announcement needs a release that holds what the README and the docs on `main` describe. - **What ships since preview.3,** 63 commits: - a first run: `chartula doctor` (#295, grouped in #341), `chartula --version` (#286), a free `preview` (#292), progress while a run works (#297, with a spinner and `--plain` in #340), a first tag from the first commit with a confirmation for a large range (#282); - what a release contains: commits without a pull request (#291), issue numbers at every depth (#293), a sentence for a release with nothing for developers (#307 in #333); - checks and prompts: pull request text quoted and bounded (#338), no false flag for a wrapped phrase or a fenced block (#336), flags set apart from the entries (#331); - publishing: the token checked before the first model call (#285), a published release not replaced unless asked (#335); - the files: `changelog.json` without descriptions and readable as text (#294, #332). - **Breaks to state in the notes,** as `docs/versioning.md` asks of a preview: - `changelog.json` is schema version 2: a change's `description` is gone (#294). The run record is schema version 3 and holds the complete facts. - `generate` stops on a tag whose release is already published; `--replace-published` restores the old behaviour (#335). - An option a command does not take stops the run (#301), and `--whole-history` is gone (#282). - The terminal output changed form (#340 to #342): the summary's first line, audience headings in place of `--- Technical ---`, and `doctor`'s last line. A script that reads those lines needs a look; exit codes and the files are unchanged. - The csproj `Version` is the single source; nothing else carries the number. **After merge:** tag the merge commit on `main` with `v0.1.0-preview.4` and push it; `release.yml` builds the draft, `chartula generate --tag v0.1.0-preview.4` writes the notes into it, and publishing runs `install.yml`. The pinned `v0.1.0-preview.3` in `docs/ci.md` and `docs/install.md`, and the template link in the `doctor` samples, move to the new tag once the release exists, with the changelog pull request of step 6. **Verified:** the built CLI prints `chartula 0.1.0-preview.4+<commit>`. Tests: no test changed. Full suite 1,010 passing, build without warnings.
goldbarth
added a commit
that referenced
this pull request
Oct 8, 2026
…arkdown source (#360) Closes #355 - **Why:** below each audience heading the summary printed the rendering as it is stored: `### What needs action`, `**Breaking:**`, backticks and links as Markdown source, and the customer description as a `description:` line of a front matter the reader is not looking at. It was the one part of the terminal output that still read as a file dumped to the screen. - **The form on a terminal:** a group is a bold heading without its `###`, an entry is a bullet with a hanging indent, a label and `Breaking:` are bold, code is coloured and loses its backticks, and a link shows as its text, `(#294)`. The description stands above the entries as the sentence it is on the page. Entries are broken between words at the width of the window; a word longer than the room, such as a URL, is not cut. - **Two colours, the two roles of the Goldbarth ramp:** `Breaking:` is what the system marks, in teal (#2DD4BF) and bold; code is what the reader types, in amber-glow (#FFE6A3), the ramp's tone for highlights. Not the identity amber (#E0A34B), which a warning's mark has. An earlier state of this pull request had the marker in that amber, then both in teal, where only the weight told them apart. With 256 colours each takes the nearest of the cube (43, 223), with 16 cyan and bright yellow. - **Built in, not handed to `glow` or a pager:** Chartula is one binary that starts no program but `git`, and a viewer most machines do not have would make the summary depend on what is installed. A rendering is put together by `RenderingComposer`, so its structure is five constructs, and `TerminalMarkdown` reads those and nothing else. It is not a Markdown renderer and does not try to be: an `*aside*` a model writes, a lone backtick or an unclosed `**` stay as written. - **Links as their text** (the variant chosen in the issue's discussion): the number says which pull request, and the URL is in `CHANGELOG.md`. - **Only a live terminal gets this form.** Redirected output, CI and `--plain` keep the Markdown and the `description:` line exactly as before, because there the text is copied or read by a program. So this changes what #342 said about a terminal: the Markdown no longer copies out of it as written; `docs/cli.md` says where to copy it from. - **Without colour** (`NO_COLOR`) the layout is the same, nothing is bold, and code keeps its backticks, since they are what still marks a name. Without Unicode the bullet is a hyphen. - **Each row is painted on its own,** so a colour never runs over a line break into the indent, and no row reaches the last column. - **The flags** below a rendering stay as #211 placed them. **Verified:** the built CLI in a pseudo-terminal of 78 columns (`script`, `COLORTERM=truecolor`), `generate --no-publish` against a local stub for GitHub and the model. Bold is shown as `<b>`, the bold teal of `Breaking:` as `<B!>`, the amber-glow of code as `<c>`: ```text <b>Customer</> This release lets you choose where a release starts and keeps the filter you set when a page reloads. <b>What needs action</> • <B!>Breaking:</> You can now pass <c>--since <ref></> to <c>generate</>, so a first tag no longer renders the whole history of a repository that is years old. <b>What's New</> • <b>Release start:</> You can now pass <c>--since <ref></> to <c>generate</>, so a first tag no longer renders the whole history of a repository that is years old. ``` The widest row is 75 columns. The same run with `--plain` prints the source as before. Tests: `TerminalMarkdownTests`, new, hold the layout, the weights and both colours at each colour depth and without colour, a link as its text, what stays as written, code that contains link or bold syntax, the hanging indent, a style across a line break, no row as wide as the window from 30 to 120 columns, a long word, and a row left whole without room or width. `ReleaseCommandOutputTests` gain the summary on a terminal; its existing tests hold the plain form unchanged. Full suite 1,082 passing, build without warnings.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Closes #339
The third of three pull requests for the launch, stacked on #341 (doctor) and #340 (progress,
--plain); review those first. With this one, every point of the launch cut in #339 is done; the points after the launch stay listed there.Generated v1.3.0.,Generated v1.3.0 with review flags: 2 in customer.,Partially generated v1.3.0: 1 of 3 audiences failed.(with; review flags: ...when there are some), orNo audience rendered for v1.3.0.. "Generated" reports what the run did, not that the text is verified;docs/cli.mdsays so. The closing "N of M audiences failed." and the exit codes are unchanged.--- Technical ---. The rendering itself is not indented, so the Markdown copies out as written, and the flags keep the form "Flagged for review" reads as if it belonged to the last entry #211 gave them.chartula · generateorchartula · previewopens stderr, above the announced defaults and the run header; plain output writeschartula generate.preview's stdout opens onPreview of v1.3.0andNo model calls · no files written · no publication.Programdecides stderr's profile (progress, notices) and stdout's (the summary) separately, sogenerate > report.txtkeeps a live spinner on the terminal and a plain file.chartulalike every other header. Every option and its text is unchanged.getting-started.md,troubleshooting.mdandcli.md;cli.mdgains a table of the first line and the header in the--tag/--reposample.Verified:
script,COLORTERM=truecolor) against local GitHub and model stubs: stderr opens onchartula · generatein bold, the progress follows, and stdout opens on the headline in bold, with the audience heading below it.chartula preview --plainin the same checkout:chartula previewas the header, no ESC.Tests:
ReleaseCommandOutputTestsgain the four first lines and the audience heading; the tests on a run without renderings, on repeated failures, andPreviewOutputTestsexpect the new lines;ArgumentCheckTeststhe help's first line. All tests pass.