kcmerrill / alfred

(v0.2) Even Batman needs a little help. Task runner. Automator. Build system.
MIT License
63 stars 14 forks source link

lost part of the readme #54

Closed scher200 closed 6 years ago

scher200 commented 6 years ago

Hi @kcmerrill what happend to the RTFM, last week it was still complete..

kcmerrill commented 6 years ago

I released a new version last night which may/may not have what you're looking for.

Can you give me an example of what you're looking for, or something that was there that is no longer there

scher200 commented 6 years ago

Well I was looking how to inherit on task from another, and then apply small adjustments to create a slightly diffrent task from that one. Last week I was reading something about Alias, but now I could not find it

kcmerrill commented 6 years ago

Ahh, yes, aliases.

I actually got rid of aliases. The biggest reason I didn't bring them back for the latest version was because I typically use https://en.wikipedia.org/wiki/YAML#Advanced_components which allows you to copy/tweak nodes. Essentially creating aliases.

scher200 commented 6 years ago

Thank you, that is exactly what I was looking for. I also missed something about

skip: true

Great tool you made there, it makes bash more fun!

kcmerrill commented 6 years ago

Yeah ... Skip is another one that didn't make the cut. Over the year I used it, there was only one incredibly specific use case that only popped up once. In hindsight using ok/fail was the better approach. If you have a specific use case you could walk me through there is probably an alternative On Thu, Dec 28, 2017 at 3:54 AM scher200 notifications@github.com wrote:

Thank you, that is exactly what I was looking for. I also missed something about

skip: true

Great tool you made there, it makes bash more fun!

— You are receiving this because you were mentioned. Reply to this email directly, view it on GitHub https://github.com/kcmerrill/alfred/issues/54#issuecomment-354270056, or mute the thread https://github.com/notifications/unsubscribe-auth/AAqMSVYtn7Zo8EhHCEGdkIcX050xMXteks5tE3NtgaJpZM4RNxOV .

scher200 commented 6 years ago

Hi @kcmerrill to get back to inherrit from another task. The following does not seem to work:

notify.ok: &notifySTD
    register:
        resu: "failed"
    command: curl -X POST -d "{{ .Time }} - Result {{ .Vars.resu }} {{ .AllArgs }} {{ .Stdin }}" https://my.local.webhook
    private: true

notify.fail: 
    << *notifySTD
    register:
          resu: "succeded"
kcmerrill commented 6 years ago

Looks like you're missing a colon in there.

Try this:

notify.ok: &notifySTD
    register:
        resu: "failed"
    command: curl -X POST -d "{{ .Time }} - Result {{ .Vars.resu }} {{ .AllArgs }} {{ .Stdin }}" https://my.local.webhook
    private: true

notify.fail: 
    <<: *notifySTD
    register:
          resu: "succeded"

Take a closer look at the : near notifySTD.

scher200 commented 6 years ago

Thanks, it's working