Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

Releases: smorin/toggle

v0.5.0

30 May 21:51
@smorin-release-please smorin-release-please
7cc8ed8
This commit was created on GitHub.com and signed with GitHub’s verified signature.
GPG key ID: B5690EEEBB952194
Verified
Learn about vigilant mode.

Choose a tag to compare

0.5.0 (2026年05月30日)

Features

  • cli: add --fields filter to --list-sections (P07) (#32) (bc52dba)
  • cli: add --remove for recursive section stripping (P06) (#34) (84a947b)
  • cli: subcommands + stdin/stdout filter mode (ergonomics 2-3/3) (#36) (c7309b8)

Refactor

  • cli: enforce flag constraints declaratively via clap (#35) (27f2fa3)
Assets 7
Loading

v0.4.0

30 May 18:04
@smorin-release-please smorin-release-please
579e9b6
This commit was created on GitHub.com and signed with GitHub’s verified signature.
GPG key ID: B5690EEEBB952194
Verified
Learn about vigilant mode.

Choose a tag to compare

0.4.0 (2026年05月30日)

Features

  • nix: add flake exposing togl CLI + libtogl C library (#29) (f9724f5)
Loading

v0.3.0

30 May 16:12
@smorin-release-please smorin-release-please
69960bd
This commit was created on GitHub.com and signed with GitHub’s verified signature.
GPG key ID: B5690EEEBB952194
Verified
Learn about vigilant mode.

Choose a tag to compare

0.3.0 (2026年05月30日)

Features

  • cli: add --insert marker-insertion mode (P05, v0.3.0) (#23) (0756d68)
  • cli: wire --insert mode and --desc flag (P05) (de6d767)
  • core: add insert_section marker insertion (P05) (b23a82e)
  • ffi: add togl-ffi C library (libtogl) + togl-* crate rename (#24) (c9ba98d)
  • P05 --insert + togl-ffi C library (libtogl) + togl-* rename (1124c61)

Bug Fixes

  • ci: self-build libtogl staticlib in C smoke test; allow MPL-2.0 (cbindgen) in deny (b5b17fc)
  • cli: honor --eol and reject --pair in --insert mode (P05) (5e290e5)
  • cli: reject --insert with --scan/--atomic; strengthen dup-id test (P05) (9949b5f)
  • silence cargo shared-target warning, correct README install line (cf2da8c)

Refactor

  • split into Cargo workspace with toggle-lib and toggle-cli crates (#22) (1dcce1a)
Loading

v0.2.3 — togl binary alias

17 Apr 03:47
@smorin smorin

Choose a tag to compare

Added

  • togl binary aliascargo install togl now installs both toggle and togl. Same behavior under either name; --help, --version, completions, and the man page each self-identify by the invoked name.
$ togl --help
Usage: togl [OPTIONS] [PATHS]...
$ toggle --help
Usage: toggle [OPTIONS] [PATHS]...

Fixed

  • --help and --version now exit with code 0 instead of 1. Pre-existing bug where clap's display-only errors were classified as Usage failures.

crates.io/crates/togl

Loading

v0.2.2 — published to crates.io as togl

17 Apr 03:26
@smorin smorin

Choose a tag to compare

Changed

  • Crate renamed toggletogl for crates.io (toggle was already taken). The installed binary is still toggle.

Install

cargo install togl

This release contains no functional changes from v0.2.1 — only the crate metadata changed so the package could be published.

crates.io/crates/togl

Loading

v0.2.1 — shell completions and man page

17 Apr 03:19
@smorin smorin

Choose a tag to compare

Added

  • --completions <SHELL> — emits a shell completion script to stdout. Supports bash, zsh, fish, powershell, elvish.
    toggle --completions bash > /etc/bash_completion.d/toggle
    
  • --man — emits a roff-formatted man page to stdout.
    toggle --man > toggle.1 && man ./toggle.1
    

Fixed

  • repository field in Cargo.toml now points at the real GitHub URL.

Changed

  • Path argument is now optional so --completions and --man can run without targets.

See CHANGELOG.md for full history.

Loading

v0.2.0 — section variants and scan enhancements

16 Apr 21:50
@smorin smorin

Choose a tag to compare

Highlights

PRD §0.13 (Section Variants) and §0.14 (Scan Enhancements) — bundled as four slices on main.

group:variant section markers (PRD §0.13)

  • New ID syntax: # toggle:start ID=db:postgres groups variants under db.
  • -S group flips a 2-variant pair (active ↔ commented).
  • -S group:variant activates one variant, comments every sibling.
  • -S group --force on|off applies the same state to every variant of the group.
  • Errors when -S group targets a 3+ variant group without a :variant qualifier.

--pair validation flag (PRD §0.13.4)

  • Pre-execution guard that errors when the targeted group does not contain exactly 2 variants.
  • No file mutations occur on failure.

Variant-aware --scan (PRD §0.14.1–§0.14.2, §0.14.4)

  • Per-file table now includes a TYPE column (solo / pair / group).
  • --scan -R recursive summary aggregates per group across files.
  • --scan -S <group> shows the detailed variant-by-variant view with file refs.
  • --scan --json emits a nested { sections: [...] } tree with variants grouped under their parent.

--scan --check validation (PRD §0.14.3)

  • Reports unclosed toggle:start markers, duplicate IDs in a single file, cross-file variant gaps, and (with --pair) pair-mismatches.
  • Exits non-zero on any error finding; warnings do not fail the run.

Repo cleanup

  • Removed the unrunnable task-master npm scaffolding (package.json, scripts/dev.js, etc.) which closed 17 Dependabot alerts in unused npm transitives.

Stats

  • 22 commits since v0.1.0 (P01–P04 + repo cleanup)
  • Tests: 7 doc + 90 unit + 111 integration = 208 passing
  • clippy -D warnings clean

Compatibility

Existing solo-section workflows are unchanged. The TYPE column and nested JSON shape are new — any tooling that parsed the old flat --scan --json array will need to read .sections[] instead.

Loading

AltStyle によって変換されたページ (->オリジナル) /