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 a complete sub-command example for v2 #65

Open
benjifisher opened this issue Aug 13, 2018 · 2 comments
Open

Add a complete sub-command example for v2 #65

benjifisher opened this issue Aug 13, 2018 · 2 comments

Comments

@benjifisher
Copy link

I copied the example .ahoy.yml from the home page, ending with this:

  subcommands:
      usage: List the commands from the imported config files.
      # These commands will be aggregated together with later files overriding earlier ones if they exist.
      imports:
        - ./some-file1.ahoy.yml
        - ./some-file2.ahoy.yml
        - ./some-file3.ahoy.yml

I then created some-file1.ahoy.yml:

ahoyapi: v2
commands:
  foo:
    cmd: echo "file1 foo"
    usage: Test command for file1.

and two similar files. I must be doing something wrong:

$ ahoy
[fatal] Command [subcommands] has 'imports' set, but no commands were found. Check your yaml file.

I think a more complete example would help.

@benjifisher
Copy link
Author

Oops, I had a typo. Fix the typo, no more error.

Still, an updated example would be helpful.

@frankcarey
Copy link
Contributor

yeah, the examples are super out of date and really incomplete.. there are lots of patterns now across various implementers that would be good to generalize into examples here.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

3 participants