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

Feature request: show commands based on existing file #81

Open
StefBakker opened this issue Jan 9, 2023 · 0 comments
Open

Feature request: show commands based on existing file #81

StefBakker opened this issue Jan 9, 2023 · 0 comments

Comments

@StefBakker
Copy link

Hi!

I would like to see a option to only show a command if a certain file exists. Example with option requires:

{
    "actionButtons": {
        "defaultColor": "#FFF",
        "commands": [
            {
                "name": "Clear Cache",
                "color": "yellow",
                "singleInstance": false,
                "command": "php bin/console cache:clear",
                "requires": "/bin/build.sh"
            },
            {
                "name": "Compile",
                "color": "yellow",
                "singleInstance": false,
                "command": "php bin/console theme:compile",
                "requires": "package.json"
            }
        ]
    }
}

This would be handy for switching multiple projects and not having to setup each project workspace.

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

1 participant