mirror of
https://github.com/JakeStanger/ironbar.git
synced 2026-07-11 08:15:21 +01:00
[PR #595] [MERGED] Refactor/cli change #2226
Labels
No labels
A:Build
A:CI
A:Client
A:Config
A:Core
A:Documentation
A:Documentation
A:IPC
A:Testing
A:UX/UI
blocked
BREAKING CHANGE
duplicate
good first issue
GTK4
help wanted
invalid
M:Battery
M:Battery
M:Bindmode
M:Bluetooth
M:Brightness
M:Cairo
M:Clipboard
M:Clock
M:Clock
M:Custom
M:Focused
M:Keyboard
M:Launcher
M:Menu
M:Music
M:Music
M:Music
M:Network Manager
M:Notifications
M:SysInfo
M:Tray
M:Volume
M:Workspaces
partially resolved
P:Critical
P:High
P:Low
P:Medium
pull-request
T:Bug
T:Bug
T:Core Enhancement
T:Module Enhancement
T:New Module
T:Question
wontfix
No milestone
No project
No assignees
1 participant
Notifications
Due date
No due date set.
Dependencies
No dependencies set.
Reference
JakeStanger/ironbar#2226
Loading…
Add table
Add a link
Reference in a new issue
No description provided.
Delete branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
📋 Pull Request Information
Original PR: https://github.com/JakeStanger/ironbar/pull/595
Author: @JakeStanger
Created: 5/18/2024
Status: ✅ Merged
Merged: 6/1/2024
Merged by: @JakeStanger
Base:
master← Head:refactor/cli-change📝 Commits (6)
dedb89brefactor(popup): renameis_visibletovisiblea0cb01arefactor: makeIronbar#unique_idmust_use7413f78feat(cli): debug flaga33e0a2feat(cli): format flag, json output format8dda494fix(cli): using zero exit code for error responses9dd7112feat!: improve CLI structure, add new commands📊 Changes
14 files changed (+565 additions, -393 deletions)
View changed files
📝
docs/Controlling Ironbar.md(+133 -45)📝
src/bar.rs(+9 -0)📝
src/cli.rs(+36 -6)📝
src/error.rs(+1 -0)📝
src/ipc/client.rs(+6 -1)📝
src/ipc/commands.rs(+77 -38)📝
src/ipc/mod.rs(+1 -1)➖
src/ipc/server.rs(+0 -297)➕
src/ipc/server/bar.rs(+84 -0)➕
src/ipc/server/ironvar.rs(+38 -0)➕
src/ipc/server/mod.rs(+164 -0)📝
src/main.rs(+13 -2)📝
src/modules/mod.rs(+2 -2)📝
src/popup.rs(+1 -1)📄 Description
This splits most CLI/IPC commands into two categories:
varfor ironvarsbarfor controlling individual bars.It also introduces more commands for visibility, as well as breaking existing ones.
New commands:
showhidetoggle_visibleset_popup_visibleget_popup_visibleThe implementation of some existing commands has been improved.
The following other smaller features/fixes are introduced by this PR:
BREAKING CHANGE: All IPC commands have changed. Namely,
typehas been changed tocommand, and bar/var related commands are now under asubcommand. The full spec can be found on the wiki.BREAKING CHANGE: Several CLI commands are now located under the
varandbarcategories. Usage of any commands to get/set Ironvars or control bar visibility will need to be updated.BREAKING CHANGE: The
open_popupandclose_popupIPC commands are now calledshow_popupandhide_popuprespectively.BREAKING CHANGE: The popup
nameargument has been renamed towidget_nameon all IPC commands.BREAKING CHANGE: The
set-visibilityCLI command now takes atrue/falsepositional argument in place of the-vflag.BREAKING CHANGE:
ok_valueresponses will no longer printokas the first line when using the CLI🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.