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

New plugin: SpinupWP CLI #409

Open
1 task done
alexclst opened this issue Dec 2, 2023 · 0 comments
Open
1 task done

New plugin: SpinupWP CLI #409

alexclst opened this issue Dec 2, 2023 · 0 comments
Labels
plugin-request Request for a new shell plugin

Comments

@alexclst
Copy link
Contributor

alexclst commented Dec 2, 2023

Platform or tool

SpinupWP

Relevant links

Goal or desired behavior

Authenticate the CLI using the token set up in your account.

Contribution

  • I'd be up for building the plugin myself.

Additional information

I've built a shell plugin before (the Linode plugin). What is different about the SpinupWP CLI is that it seems to have no support for environment variables to get the token from (I have asked for this), so instead the CLI expects a file at ~/.spinupwp/config.json with contents like the following for authentication and configuration:

{
    "default": {
        "api_token": "<token>",
        "format": "table",
        "command_options": []
    }
}

Is this something that a shell plugin can handle? I've only ever written plugins that use environment variables, and though I know some of how secret references work do not know if something similar can be done as a shell plugin to enable shell plugins for CLIs that do not have environment variable options.

@alexclst alexclst added the plugin-request Request for a new shell plugin label Dec 2, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
plugin-request Request for a new shell plugin
Projects
None yet
Development

No branches or pull requests

1 participant