Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add cli option for config path #25

Closed
caesay opened this issue Nov 20, 2023 · 1 comment
Closed

Add cli option for config path #25

caesay opened this issue Nov 20, 2023 · 1 comment

Comments

@caesay
Copy link

caesay commented Nov 20, 2023

For those of us who don't want to use the installer, it would be nice if you could run the app portably, so either it could detect the config file sitting in the same directory, or you should be able to pass in the path to the config path on the command line.
(great app by the way, thanks a lot!)

@jacob-pro jacob-pro mentioned this issue Jan 10, 2024
@jacob-pro
Copy link
Owner

jacob-pro commented Jan 11, 2024

This is now supported in the version 2.0 CLI.
The CLI can be downloaded directly as part of the release without using the installer.

C:\Users\jacob\AppData\Local\solar-screen-brightness>ssb-cli.exe --help
Uitlity for automatically setting monitor brightness according to sunrise/sunset times.

Usage: ssb-cli.exe [OPTIONS]

Options:
  -d, --debug            Enable debug logging
  -o, --once             Update brightness once and exit
      --config <CONFIG>  Override the config file path
  -h, --help             Print help
  -V, --version          Print version

e.g.

C:\Users\jacob\AppData\Local\solar-screen-brightness>ssb-cli.exe --config config.json
00:01:51 [INFO] Starting Solar Screen Brightness (CLI), version: 2.0.0

If you don't specify a path it will default to %LOCALAPPDATA%\solar-screen-brightness\config.json

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

No branches or pull requests

2 participants