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 scaffoliding functions to the CLI #1

Open
pfiaux opened this issue Jun 22, 2018 · 1 comment
Open

Add scaffoliding functions to the CLI #1

pfiaux opened this issue Jun 22, 2018 · 1 comment
Labels
scope CLI Issues concerning the @neeo/cli module

Comments

@pfiaux
Copy link
Contributor

pfiaux commented Jun 22, 2018

The goal would be that after installing the CLI into a development repository (or using it globally) it could be used to scaffold a basic SDK Driver without having to copy/paste modify code.

The initial target would be to setup a new driver easily and quickly:

neeo-cli init

Then prompt

  • Device name (text input)
  • Type (list)
  • Manufacturer (text input)
  • Button or button group (at least 1 control is needed for a valid driver)
    • Button name (text input)
    • Button label (text input)
    • Add another button (yes/no)
  • Nice additional options
    • Discovery (yes/no)
    • Notifications (yes/no)
    • Device subscription (yes/no)
    • Capabilities (list)

Then it would prompt some questions and generate a skeleton index and controller with the basic type, name and such.

@pfiaux pfiaux added the scope CLI Issues concerning the @neeo/cli module label Jun 22, 2018
@pfiaux
Copy link
Contributor Author

pfiaux commented Jun 22, 2018

Recently @Shepless implemented a prototype cli in https://github.com/Shepless/neeo-cli using inquirer

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
scope CLI Issues concerning the @neeo/cli module
Development

No branches or pull requests

1 participant