Skip to content
This repository has been archived by the owner on Aug 13, 2024. It is now read-only.

Add support for attaching tags at runtime over the CLI #77

Closed
alexanderdean opened this issue Oct 13, 2016 · 3 comments
Closed

Add support for attaching tags at runtime over the CLI #77

alexanderdean opened this issue Oct 13, 2016 · 3 comments
Assignees
Milestone

Comments

@alexanderdean
Copy link
Contributor

No description provided.

@ninjabear
Copy link
Contributor

Advanced to 0.3.0, this feature is essential as part of #59

@ninjabear
Copy link
Contributor

ninjabear commented Oct 20, 2016

I've added a command line option --tag=key,value that has the following effects:

  1. it's used to calculate the "job reference" (SHA256) hash (including the Factfile as normal)
  2. all tags are passed through in the webhook as a list of key -> value pairs under a "tags" object, e.g.

$ factotum run samples/echo.factfile --webhook http://*** --tag="foo,bar" --tag="foo2,bar2"

results in the following structure being inserted at the root level of the webhook update json (job and task level)

...
"tags":{"foo":"bar","foo2":"bar2"}
...

@alexanderdean
Copy link
Contributor Author

Perfect!

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

No branches or pull requests

2 participants