Permalink
Browse files

Project has moved to https://github.com/airlift/airline

  • Loading branch information...
1 parent 807bca0 commit 590f85e8340300d5b860f923ee0ec303c53d95ca @dain committed Jul 25, 2012
Showing with 4 additions and 6,644 deletions.
  1. +0 −17 .gitignore
  2. +4 −217 README.md
  3. +0 −203 license.txt
  4. +0 −6 notice.md
  5. +0 −184 pom.xml
  6. +0 −278 src/main/java/org/iq80/cli/Accessor.java
  7. +0 −49 src/main/java/org/iq80/cli/Arguments.java
  8. +0 −286 src/main/java/org/iq80/cli/Cli.java
  9. +0 −50 src/main/java/org/iq80/cli/Command.java
  10. +0 −186 src/main/java/org/iq80/cli/CommandGroupUsage.java
  11. +0 −30 src/main/java/org/iq80/cli/CommandSuggester.java
  12. +0 −155 src/main/java/org/iq80/cli/CommandUsage.java
  13. +0 −6 src/main/java/org/iq80/cli/Context.java
  14. +0 −28 src/main/java/org/iq80/cli/GlobalSuggester.java
  15. +0 −134 src/main/java/org/iq80/cli/GlobalUsage.java
  16. +0 −106 src/main/java/org/iq80/cli/GlobalUsageSummary.java
  17. +0 −26 src/main/java/org/iq80/cli/GroupSuggester.java
  18. +0 −88 src/main/java/org/iq80/cli/Help.java
  19. +0 −68 src/main/java/org/iq80/cli/Option.java
  20. +0 −6 src/main/java/org/iq80/cli/OptionType.java
  21. +0 −27 src/main/java/org/iq80/cli/ParseException.java
  22. +0 −155 src/main/java/org/iq80/cli/ParseState.java
  23. +0 −271 src/main/java/org/iq80/cli/Parser.java
  24. +0 −71 src/main/java/org/iq80/cli/ParserUtil.java
  25. +0 −87 src/main/java/org/iq80/cli/SuggestCommand.java
  26. +0 −6 src/main/java/org/iq80/cli/Suggester.java
  27. +0 −79 src/main/java/org/iq80/cli/TypeConverter.java
  28. +0 −184 src/main/java/org/iq80/cli/UsageHelper.java
  29. +0 −130 src/main/java/org/iq80/cli/UsagePrinter.java
  30. +0 −142 src/main/java/org/iq80/cli/model/ArgumentsMetadata.java
  31. +0 −74 src/main/java/org/iq80/cli/model/CommandGroupMetadata.java
  32. +0 −120 src/main/java/org/iq80/cli/model/CommandMetadata.java
  33. +0 −75 src/main/java/org/iq80/cli/model/GlobalMetadata.java
  34. +0 −261 src/main/java/org/iq80/cli/model/MetadataLoader.java
  35. +0 −242 src/main/java/org/iq80/cli/model/OptionMetadata.java
  36. +0 −29 src/main/java/org/iq80/cli/model/SuggesterMetadata.java
  37. +0 −8 src/test/java/org/iq80/cli/ArgsRequiredWrongMain.java
  38. +0 −384 src/test/java/org/iq80/cli/CommandTest.java
  39. +0 −435 src/test/java/org/iq80/cli/GalaxyCommandLineParser.java
  40. +0 −71 src/test/java/org/iq80/cli/Git.java
  41. +0 −31 src/test/java/org/iq80/cli/GitTest.java
  42. +0 −437 src/test/java/org/iq80/cli/HelpTest.java
  43. +0 −271 src/test/java/org/iq80/cli/ParametersDelegateTest.java
  44. +0 −11 src/test/java/org/iq80/cli/TestUtil.java
  45. +0 −59 src/test/java/org/iq80/cli/args/Args1.java
  46. +0 −46 src/test/java/org/iq80/cli/args/Args2.java
  47. +0 −41 src/test/java/org/iq80/cli/args/ArgsArityString.java
  48. +0 −29 src/test/java/org/iq80/cli/args/ArgsBooleanArity.java
  49. +0 −29 src/test/java/org/iq80/cli/args/ArgsBooleanArity0.java
  50. +0 −44 src/test/java/org/iq80/cli/args/ArgsDefault.java
  51. +0 −43 src/test/java/org/iq80/cli/args/ArgsEnum.java
  52. +0 −31 src/test/java/org/iq80/cli/args/ArgsInherited.java
  53. +0 −37 src/test/java/org/iq80/cli/args/ArgsMultipleUnparsed.java
  54. +0 −15 src/test/java/org/iq80/cli/args/ArgsOutOfMemory.java
  55. +0 −34 src/test/java/org/iq80/cli/args/ArgsPrivate.java
  56. +0 −31 src/test/java/org/iq80/cli/args/ArgsRequired.java
  57. +0 −63 src/test/java/org/iq80/cli/args/ArgsSingleChar.java
  58. +0 −11 src/test/java/org/iq80/cli/args/Arity1.java
  59. +0 −32 src/test/java/org/iq80/cli/args/CommandHidden.java
  60. +0 −123 src/test/java/org/iq80/cli/args/CommandLineArgs.java
  61. +0 −32 src/test/java/org/iq80/cli/args/OptionsHidden.java
  62. +0 −35 src/test/java/org/iq80/cli/args/OptionsRequired.java
  63. +0 −40 src/test/java/org/iq80/cli/command/CommandAdd.java
  64. +0 −42 src/test/java/org/iq80/cli/command/CommandCommit.java
  65. +0 −29 src/test/java/org/iq80/cli/command/CommandMain.java
  66. +0 −74 src/test/java/org/iq80/cli/command/CommandTest.java
View
@@ -1,17 +0,0 @@
-*.iml
-*.ipr
-*.iws
-/target
-pom.xml.versionsBackup
-/test-output
-atlassian-ide-plugin.xml
-.idea
-.DS_Store
-.classpath
-.project
-.settings
-.project
-temp-testng-customsuite.xml
-.externalToolBuilders
-*~
-.rvmrc
View
221 README.md
@@ -1,220 +1,7 @@
-Git-like-cli
-============
+Moved
+=====
-Git-like-cli is a Java annotation-based framework for parsing Git like command line structures.
+Git-like-cli as been renamed and moved to **[Airline](https://github.com/airlift/airline)** ([https://github.com/airlift/airline](https://github.com/airlift/airline)).
-Latest release is 0.3, available from Maven Central.
+The old Git-like-cli code can be found in the [old-master](https://github.com/dain/git-like-cli/tree/old-master) branch.
-Here is a quick example:
-
-```java
-public class Git
-{
- public static void main(String[] args)
- {
- CliBuilder<Runnable> builder = Cli.buildCli("git", Runnable.class)
- .withDescription("the stupid content tracker")
- .withDefaultCommand(Help.class)
- .withCommands(Help.class,
- Add.class);
-
- builder.withGroup("remote")
- .withDescription("Manage set of tracked repositories")
- .withDefaultCommand(RemoteShow.class)
- .withCommands(RemoteShow.class,
- RemoteAdd.class);
-
- Cli<Runnable> gitParser = builder.build();
-
- gitParser.parse(args).run();
- }
-
- public static class GitCommand implements Runnable
- {
- @Option(type = OptionType.GLOBAL, name = "-v", description = "Verbose mode")
- public boolean verbose;
-
- public void run()
- {
- System.out.println(getClass().getSimpleName());
- }
- }
-
- @Command(name = "add", description = "Add file contents to the index")
- public static class Add extends GitCommand
- {
- @Arguments(description = "Patterns of files to be added")
- public List<String> patterns;
-
- @Option(name = "-i", description = "Add modified contents interactively.")
- public boolean interactive;
- }
-
- @Command(name = "show", description = "Gives some information about the remote <name>")
- public static class RemoteShow extends GitCommand
- {
- @Option(name = "-n", description = "Do not query remote heads")
- public boolean noQuery;
-
- @Arguments(description = "Remote to show")
- public String remote;
- }
-
- @Command(name = "add", description = "Adds a remote")
- public static class RemoteAdd extends GitCommand
- {
- @Option(name = "-t", description = "Track only a specific branch")
- public String branch;
-
- @Arguments(description = "Remote repository to add")
- public List<String> remote;
- }
-}
-```
-
-Assuming you have packaged this as an executable program named 'git', you would be able to execute the following commands:
-
-```shell
-$ git add -p file
-
-$ git remote add origin git@github.com:dain/git-like-cli.git
-
-$ git -v remote show origin
-```
-
-
-
-Help System
-===========
-
-Git-like-cli contains a fully automated help system, which generates man-page-like documentation driven by the Java
-annotations.
-
-As you may have noticed in the code above, we added Help.class to the cli. This command is provided by Git-like-cli and works as follows:
-
-```shell
-$ git help
-usage: git [-v] <command> [<args>]
-
-The most commonly used git commands are:
- add Add file contents to the index
- help Display help information
- remote Manage set of tracked repositories
-
-See 'git help <command>' for more information on a specific command.
-
-
-$ git help git
-NAME
- git - the stupid content tracker
-
-SYNOPSIS
- git [-v] <command> [<args>]
-
-OPTIONS
- -v
- Verbose mode
-
-COMMANDS
- help
- Display help information
-
- add
- Add file contents to the index
-
- remote show
- Gives some information about the remote <name>
-
- remote add
- Adds a remote
-
-
-
-$ git help add
-NAME
- git add - Add file contents to the index
-
-SYNOPSIS
- git [-v] add [-i] [--] [<patterns>...]
-
-OPTIONS
- -i
- Add modified contents interactively.
-
- -v
- Verbose mode
-
- --
- This option can be used to separate command-line options from the
- list of argument, (useful when arguments might be mistaken for
- command-line options
-
- <patterns>
- Patterns of files to be added
-
-
-
-$ git help remote
-NAME
- git remote - Manage set of tracked repositories
-
-SYNOPSIS
- git [-v] remote
- git [-v] remote add [-t <branch>]
- git [-v] remote show [-n]
-
-OPTIONS
- -v
- Verbose mode
-
-COMMANDS
- With no arguments, Gives some information about the remote <name>
-
- show
- Gives some information about the remote <name>
-
- With -n option, Do not query remote heads
-
- add
- Adds a remote
-
- With -t option, Track only a specific branch
-
-
-
-$ git help remote show
-NAME
- git remote show - Gives some information about the remote <name>
-
-SYNOPSIS
- git [-v] remote show [-n] [--] [<remote>]
-
-OPTIONS
- -n
- Do not query remote heads
-
- -v
- Verbose mode
-
- --
- This option can be used to separate command-line options from the
- list of argument, (useful when arguments might be mistaken for
- command-line options
-
- <remote>
- Remote to show
-```
-
-We have also, add Help.class as the default command for git, so if you execute git without any arguments, you will see the following:
-
-```shell
-$ git help
-usage: git [-v] <command> [<args>]
-
-The most commonly used git commands are:
- add Add file contents to the index
- help Display help information
- remote Manage set of tracked repositories
-
-See 'git help <command>' for more information on a specific command.
-```
Oops, something went wrong.

0 comments on commit 590f85e

Please sign in to comment.