Dr. Juande Santander-Vela on Nostr: TIL and PSA at the same time: Today I learned that there is an `automator` command ...
TIL and PSA at the same time:
Today I learned that there is an `automator` command line too in macOS to manage workflows. More details on usage can be found with `man automator`.
As I have a couple for workflows that can create things in Jira, Jama, or Confluence, I can actually now use them from the command line like this:
```bash
echo "text to search " | automator -i - ~/Library/Services/search-in-alma-reqs.workflow
```
In fact, I could write a small function like this:
```bash
function jama_search {
automator -i "$*" ~/Library/Services/search-in-alma-reqs.workflow
}
```
And then to something like `jama_search Sys-Req-100` to find all occurences of Sys-Req-100 in the project from the command line — including opening the righ URL in the default browser.
#TIL #PSA #Automator #CLI #macOS
Today I learned that there is an `automator` command line too in macOS to manage workflows. More details on usage can be found with `man automator`.
As I have a couple for workflows that can create things in Jira, Jama, or Confluence, I can actually now use them from the command line like this:
```bash
echo "text to search " | automator -i - ~/Library/Services/search-in-alma-reqs.workflow
```
In fact, I could write a small function like this:
```bash
function jama_search {
automator -i "$*" ~/Library/Services/search-in-alma-reqs.workflow
}
```
And then to something like `jama_search Sys-Req-100` to find all occurences of Sys-Req-100 in the project from the command line — including opening the righ URL in the default browser.
#TIL #PSA #Automator #CLI #macOS