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

target call target, display "Unknown command/target" #98

Open
andares opened this issue Oct 13, 2016 · 2 comments
Open

target call target, display "Unknown command/target" #98

andares opened this issue Oct 13, 2016 · 2 comments

Comments

@andares
Copy link

andares commented Oct 13, 2016

$ sup -f elk.yml local install
Targets:   
- java     start date
- install  java add-key

Commands:  
- start    Print some env vars
- date     Print OS name and current date/time
- add-key  add apt key

Unknown command/target: java

how does it work?

supfile content like:

commands:
    start:
        desc: Print some env vars
        run: echo \>\>\> start run for $SUP_NETWORK
    date:
        desc: Print OS name and current date/time
        run: uname -a; date
    add-key:
        desc: add apt key
        run: wget -qO - https://packages.elastic.co/GPG-KEY-elasticsearch | sudo apt-key add -

targets:
    java:
        - start
        - date
    install:
        - java
        - add-key
@andares andares changed the title target call taget, display "Unknown command/target" target call target, display "Unknown command/target" Oct 13, 2016
@VojtechVitek
Copy link
Collaborator

So, target calls another target. Cool. The only problem would be circular dependency, we'd need a proper check.

Ref. #31.

@andares
Copy link
Author

andares commented Oct 13, 2016

Yes, I think it will be useful. try to do it :-D

@andares andares closed this as completed Oct 13, 2016
@andares andares reopened this Oct 13, 2016
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