feat(profile): add profile clear command - #120
Merged
Merged
Conversation
Adds `lc profile clear` — a zero-argument command that sets active = 0 for whichever profile is currently active, without deleting it. Safe to call with no active profile (no-op). Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
bougyman
pushed a commit
that referenced
this pull request
Aug 16, 2026
🤖 I have created a release *beep* *boop* --- ## [1.9.0](v1.8.0...v1.9.0) (2026-08-16) ### Features * **profile:** add profile clear command ([#120](#120)) ([45cce6f](45cce6f)) --- This PR was generated with [Release Please](https://github.com/googleapis/release-please). See [documentation](https://github.com/googleapis/release-please#release-please).
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.
Summary
lc profile clear— a zero-argument command that deactivates the currently active profile without deleting it:okChanges
LinearCli.Profiles.clear/0: singleUPDATE profiles SET active = 0statement, no transaction neededLinearCli.CLI: Optimus subcommand spec forclear(no args) + dispatch clause[:profile, :clear]LinearCli.CLI.Commands.profile_clear/1: callsProfiles.clear()and prints confirmationTest plan
mix testpasses (3 newclear/0tests all pass; only pre-existing git env failures remain)mix compile --warnings-as-errorscleanlc profile clearclears the active profilelc profile clearwith no active profile prints confirmation without errorCloses https://linear.app/cryptokairos/issue/CRY-46/featprofile-deactivate-a-profile-without-deleting-it
🤖 Generated with Claude Code