gnu-arch-users
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: [Gnu-arch-users] Script for extending tla


From: Scott Bronson
Subject: Re: [Gnu-arch-users] Script for extending tla
Date: Tue, 13 Jan 2004 10:32:15 -0800

This seems like a really good idea.  tla itself could produce very
precise, ugly output and have a limited command set.  The front ends
would smooth things out for the user.  We'd get a more comprehensive UI
without having to put the complexity in tla.

To use the current bash completions, just change the " tla" on the last
line to " aba" (leave the "_tla" alone).  I'll try to answer any
questions you might have about them.

    - Scott


On Tue, 2004-01-13 at 08:33, Aaron Bentley wrote:
> Hi all,
> 
> A while back, there was a suggestion that we make arch extendable with
> shell scripts.  I thought the idea was neat, but Tom was having nothing
> of it.  He felt that we could just write wrappers around tla to achive
> the same effect.
> 
> Well, I think he was right.  Here's a stupid-simple arch wrapper I
> wrote, which I have named, with all due humility, Aaron Bentley's Arch. 
> You can use it to add new commands, add your favourite options to
> existing commands, or disable existing commands.
>  
> The main script just looks for files in ~/.aba/commands, and executes
> them if they exist.  Otherwise, it executes tla.
> 
> Command scripts can take either "exec" as $1, which runs the command, or
> "desc" which outputs a description in the format used by "tla help"
> 
> Attached are
> aba: The main script
> diff: a shortcut for "tla changes --diff"
> help: an override for "tla help" that appends the list of extensions to
> the end of normal help output
> what-changed: notifies the user to use "changes" instead
> 
> Comments and suggestions are most welcome.  In particular, I'd like to
> provide support for shell completion, but I don't know how to go about
> that.
> 
> Aaron 





reply via email to

[Prev in Thread] Current Thread [Next in Thread]