zsh-workers
 help / color / mirror / code / Atom feed
From: Sebastian Gniazdowski <sgniazdowski@gmail.com>
To: Zsh hackers list <zsh-workers@zsh.org>
Subject: Any ideas for syntax of a task specification?
Date: Wed, 9 May 2018 22:05:13 +0200	[thread overview]
Message-ID: <CAKc7PVBisCQ3xHZYedBmGx31HtzhKE5oq0UEy7MbYQdm=52Cig@mail.gmail.com> (raw)

[-- Attachment #1: Type: text/plain, Size: 952 bytes --]

Hello,
I currently use following syntax of a task (the task is: file to source):

... atinit"code to be run before running task" \
    atload"code to be run after running task" \
    load"condition to load task, e.g. [[ $PROMPT = yes ]]" \
    unload"condition to unload task, e.g. [[ $PROMPT = no ]]"
    wait"time to wait before loading task, # of seconds, alternative to
'load'"

Background & motivation is: 1-code-line with substitution is sufficient to
detect task that needs to be run. The substitution uses code execution,
calls math function.

It's task-management, elastic scheduler, in few lines of code, fast.

So I wonder: has anyone seen in e.g. daily job, in some other technology, a
syntax to specify complex things, tasks, that could be used? Or has some
idea? Zsh can serialize hashes, so ZSH_TASKS array (on which the
1-code-line  substitution operates) can hold very rich task specification.

-- 
Best regards,
Sebastian Gniazdowski

                 reply	other threads:[~2018-05-09 20:05 UTC|newest]

Thread overview: [no followups] expand[flat|nested]  mbox.gz  Atom feed

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to='CAKc7PVBisCQ3xHZYedBmGx31HtzhKE5oq0UEy7MbYQdm=52Cig@mail.gmail.com' \
    --to=sgniazdowski@gmail.com \
    --cc=zsh-workers@zsh.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
Code repositories for project(s) associated with this public inbox

	https://git.vuxu.org/mirror/zsh/

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).