Create a catalog of CommandRefs for lookup and enumeration
commitf12e6e47db6ad8e66235b96460e68620ca3a0304
authorShawn O. Pearce <spearce@spearce.org>
Mon, 21 Jul 2008 05:28:29 +0000 (21 01:28 -0400)
committerShawn O. Pearce <spearce@spearce.org>
Thu, 31 Jul 2008 02:47:04 +0000 (30 19:47 -0700)
tree3c7be28be136d76eae74d63f530bbb5495f3a15c
parent799cb9486377f98921ba71bae22717e15bcd0a51
Create a catalog of CommandRefs for lookup and enumeration

The command catalog supports enumerating commands registered through
a services list, converting each entry into a CommandRef and making
that available to callers on demand.  The CommandRef can be later used
to create a command instance or just to obtain documentation about it.

All current commands are listed in the service registration.

Signed-off-by: Shawn O. Pearce <spearce@spearce.org>
make_jgit.sh
org.spearce.jgit.pgm/src/META-INF/services/org.spearce.jgit.pgm.TextBuiltin [new file with mode: 0644]
org.spearce.jgit.pgm/src/org/spearce/jgit/pgm/CommandCatalog.java [new file with mode: 0644]