Skip to content

Conversation

@Supremekirb
Copy link

@Supremekirb Supremekirb commented Apr 29, 2024

CoilSnake's command line interface is only usable via the source code. This branch adds the ability for the CLI to be accessed through an executable binary.

This changes CoilSnake.spec to no longer consider the program windowed, instead making it a console application with the extra option hide_console='hide-early' set. In script/gui.py, the entry file of the binary, a check is added which will switch to CLI mode (script/cli.py) if extra arguments are passed, and skip running the GUI entirely.

  • Booting CoilSnake from File Explorer, the taskbar, etc. will have the same functionality - the GUI will open with no console window.
  • Booting CoilSnake from Command Prompt with no arguments will boot the GUI, with it now being a blocking process.
  • Booting CoilSnake from Command Prompt with arguments will use the CLI instead.

@Supremekirb
Copy link
Author

Done. I haven't personally tested it but I assume you have

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.

2 participants