Repository navigation
Split CLI into separate binary - #1690
Open
JakeStanger wants to merge 1 commit into
Open
JakeStanger wants to merge 1 commit into
JakeStanger wants to merge 1 commit into
Conversation
JakeStanger
force-pushed
the
refactor/cli-split
branch
9 times, most recently
from
November 4, 2026 21:58
3047d12 to
a1da388
Compare
JakeStanger
marked this pull request as ready for review
November 7, 2026 16:08
JakeStanger
force-pushed
the
refactor/cli-split
branch
from
November 7, 2026 16:26
a1da388 to
df4f617
Compare
JakeStanger
force-pushed
the
refactor/cli-split
branch
3 times, most recently
from
November 7, 2026 16:33
f386de5 to
f7ef502
Compare
JakeStanger
commented
Nov 7, 2026
Owner
Author
There was a problem hiding this comment.
Need to check & sort compilation flags
Introduces several helper crates, with the CLI moved to its own binary taking the `ironbar` name. The main bar now lives at `ironbard`, which the CLI will forward the `exec` to when appropriate. By moving the CLI into its own binary, it improves the startup time by over 30x, which means faster IPC communication. Resolves #1687 Related: #1488
JakeStanger
force-pushed
the
refactor/cli-split
branch
from
November 7, 2026 23:48
f7ef502 to
33d174c
Compare
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.
Splits out the CLI into its own
ironbar-clicrate. The CLI uses theironbarbinary name, and the bar is moved toironbard.The CLI works as a proxy, and has exactly the same interface as the current binary. Executing just
ironbar(or any command without sub-commands) will forward to start the bar, whereas other requests stay within the CLI executable.By keeping IPC calls inside the CLI executable, it avoids the need to load the GTK libraries, which takes an approximate forever. This leads to an approximate 30x speedup in IPC commands, and a 7x reduction in memory needed.
A benchmark from the WIP version shows this:
The PR also introduces several other helper crates, mostly out of necessity to decouple the code in order to extract the CLI in the first place. These are:
ironbar-core- some central shared types.ironbar-args- the CLI argument types, as these are needed by both the CLI and main bar.ironbar-ipc-types- the command/response definitions for IPC, and base struct.The latter is exciting as it'll mean the IPC defintions will be published properly for the first time as a standalone crate, allowing rust-based integrations to be easily made.
Resolves #1687
Related: #1488
Quite a bit of work to be done here still and some decisions to be made, but this works so publishing.