Skip to content

Implements CLI saveAll command.#80

Open
avengerx wants to merge 2 commits intocaoyue:devfrom
avengerx:cli-saver
Open

Implements CLI saveAll command.#80
avengerx wants to merge 2 commits intocaoyue:devfrom
avengerx:cli-saver

Conversation

@avengerx
Copy link
Copy Markdown

Implementation of what I suggested in #79. But I only implemented "save all", without an option to save a specific window. This shouldn't be very difficult based on the existing resize option.

Now I can script saving and restoring windows. :B


This will do the same as the GUI does when using the hotkey or context action to save all open windows' positions.

Usage examples:

WindowResizer.CLI.exe saveAll
WindowResizer.CLI.exe saveAll --config a:\apps\WinResizer\config.json WindowResizer.CLI.exe saveAll --profile CLIPositions

Once saved, to restore them all

WindowResizer.CLI.exe resize

(if a different config file path is used to save, the same must be used to restore).

Heavenly Avenger added 2 commits March 28, 2025 08:40
This will do the same as the GUI does when using the hotkey or context
action to save all open windows' positions.

Usage examples:

WindowResizer.CLI.exe saveAll
WindowResizer.CLI.exe saveAll --config a:\apps\WinResizer\config.json
WindowResizer.CLI.exe saveAll --profile CLIPositions

Once saved, to restore them all

WindowResizer.CLI.exe resize

(if a different config file path is used to save, the same must be used
to restore).
The 'Config' class was renamed to 'ProfileConfig'.
Likewise, 'ConfigFactory' to 'ProfilesFactory'.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant