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

Create command line interface (CLI) #3

Closed
hristoiankov opened this issue Mar 1, 2022 · 6 comments
Closed

Create command line interface (CLI) #3

hristoiankov opened this issue Mar 1, 2022 · 6 comments
Labels
enhancement New feature or request

Comments

@hristoiankov
Copy link
Contributor

hristoiankov commented Mar 1, 2022

Users have requested a CLI for automated tasks.

Sample CLI calls:

node cider-cli.js function=export-pdf database=database.json cards=cards.csv assets=assets/ output=output.pdf
node cider-cli.js function=export-png database=database.json cards=cards.csv assets=assets/ output=output.zip

cards.csv

id,name,count,frontTemplate,backTemplate,attr1,attr2,...
1,"CLI Card",1,"Apple Front","Apple Back","val1","val2",...
2,"GUI Card",1,"Apple Front","Apple Back","val1","val2",...

assets
Pass in a directory for the assets. Each file in the provided directory is indexed by its name.
assets/poison-apple.png => referenced by {{assets.poison-apple}}

database
Pass in an exported database.js. This is used for containing the templates.

Feature request origin:
https://boardgamegeek.com/thread/2818611/new-application-cider-card-ide-designing-game-card

@hristoiankov hristoiankov added the enhancement New feature or request label Mar 1, 2022
@pakoito
Copy link

pakoito commented Mar 2, 2022

Thank you for accepting the request. I can answer questions here too!

@greenstack
Copy link

I'm particularly interested in CSV importing - it'd be nice to be able to import CSVs from the web interface as well.

@hristoiankov
Copy link
Contributor Author

There’s another issue open for csv imports through the UI. #11

I can work on that feature tonight.

CLI is a bit more involved, I will work on the CLI once I have formalized an implementation plan. It will require a headless browser and I’ll need to have a design with the least amount of dependencies.

@hristoiankov
Copy link
Contributor Author

hristoiankov commented Mar 13, 2022

CSV importing through the UI is now implemented and pushed to production.

@hristoiankov
Copy link
Contributor Author

Discussion continued in #33

@hristoiankov
Copy link
Contributor Author

Reviving this thread since I believe the intent of the request may now be covered by the desktop release of Cider in 0.3 out now. https://github.com/oatear/cider/releases/tag/0.3

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

No branches or pull requests

3 participants