[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: [Gnu-arch-users] talk amongst yourselves: "iterated" operations over
From: |
Robert Anderson |
Subject: |
Re: [Gnu-arch-users] talk amongst yourselves: "iterated" operations over configs |
Date: |
15 Sep 2003 22:47:08 -0700 |
On Mon, 2003-09-15 at 22:21, Robert Anderson wrote:
>
> A lot of arch commands are also useful in the context of applying the
> command to each tree in a config. For example, I often do:
>
> tla catcfg | awk '{print $1}' | xargs -n1 -i tla what-changed --dir
>
> There's quite a few commands which could be "iterated" like this over
> the project trees in a config. I think it's worth thinking about a way
> of trying to systematize such operations and build them into the cli.
>
> My first guess at a decent cli is to provide an argument analogous to
> the usual --dir argument; I guess --config is the most obvious choice.
>
> Then you could do things like:
>
> tla what-changed --config
> tla commit --config
> tla replay --config
> tla update --config
> tla undo --config
> tla redo --config
> tla tree-lint --config
To be slightly clearer, the config would be specified:
tla what-changed --config myconfig
Robert Collins just made an interesting counterproposal on irc for an
"iteratecfg" command:
% tla iteratecfg cmd params
That seems like an interesting idea, and possibly the way to go.
Bob
Re: [Gnu-arch-users] talk amongst yourselves: "iterated" operations over configs,
Robert Anderson <=