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

Binary/CLI? #19

Closed
four43 opened this issue Jan 22, 2018 · 9 comments
Closed

Binary/CLI? #19

four43 opened this issue Jan 22, 2018 · 9 comments

Comments

@four43
Copy link

four43 commented Jan 22, 2018

I'm looking to install mustache just as a binary, but the default in the Ubuntu package manager is the CLI tool provided by the ruby implementation. Well then I need all this Ruby junk just to run a template engine! Go and it's static binary output seems perfect for the task. Any interest in creating a CLI on top of your library that would match the Ruby implementation?

Thanks!
-Seth

@four43 four43 changed the title Binary Output for a CLI? Binary/CLI? Jan 22, 2018
@four43
Copy link
Author

four43 commented Jan 22, 2018

I'm dumb, already asked in #9 but I just searched the phrase "CLI". DOH!

@four43 four43 closed this as completed Jan 22, 2018
@cbroglie
Copy link
Owner

I actually think I've figured out how to implement this as a package and CLI since closing that previous ticket. Going to take a stab at it now.

@cbroglie cbroglie reopened this Jan 22, 2018
@four43
Copy link
Author

four43 commented Jan 22, 2018 via email

@four43
Copy link
Author

four43 commented Jan 22, 2018

@cbroglie gonna tag you, man. I don't want you wasting an evening lol

@cbroglie
Copy link
Owner

Heh, no worries. I want to go through the exercise anyways.

@four43
Copy link
Author

four43 commented Jan 22, 2018 via email

@cbroglie
Copy link
Owner

You can now install the binary using go get:

➜  ~ go get github.com/cbroglie/mustache/...
➜  ~ mustache
Usage:
  mustache [data] template [flags]

Examples:
  $ mustache data.yml template.mustache
  $ cat data.yml | mustache template.mustache

Flags:
  -h, --help   help for mustache
➜  ~

@four43
Copy link
Author

four43 commented Jan 22, 2018 via email

@cbroglie
Copy link
Owner

I opened #20 to address that. Should be doable, but I won't have a chance to get around to it for at least a week.

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

2 participants