Skip to content

Added disabled flag to commands - #185

Open
Dustinhoefer wants to merge 1 commit into
NOALBS:v2from
Dustinhoefer:feature/add-enabled-field-for-commands
Open

Added disabled flag to commands#185
Dustinhoefer wants to merge 1 commit into
NOALBS:v2from
Dustinhoefer:feature/add-enabled-field-for-commands

Conversation

@Dustinhoefer

Copy link
Copy Markdown

We needed to completely disable some commands.
Since this was not possible, I added a flag "disabled" (default false) for commands.

Questions:
Is there a way we could make it so that we do NOT have to change the config.json, because
this PR would be a breaking change for others (they need to add "disabled" to all commands ...)

@sm9cc

sm9cc commented Jul 31, 2025

Copy link
Copy Markdown

You could add the field dynamically during parsing if it's missing, defaulting to false. Or if the field isn't present in the config, just treat the command as enabled.

@715209

715209 commented Jul 13, 2026

Copy link
Copy Markdown
Member

Hi @Dustinhoefer ,

Thanks for the PR!

Sorry for the late response. I think I'm going to implement this a bit differently, but I'll keep the PR open for now in case that doesn't end up happening.

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.

3 participants