more bash completion tags v_0
authorFrantišek Kučera <franta-hg@frantovo.cz>
Fri, 27 Dec 2013 16:54:10 +0100
branchv_0
changeset 79e19a13ed19a9
parent 78 d98f33d91553
child 80 c4635ab3a7af
more bash completion tags
java/sql-dk/src/info/globalcode/sql/dk/CLIParser.java
java/sql-dk/src/info/globalcode/sql/dk/Constants.java
java/sql-dk/src/info/globalcode/sql/dk/formatting/SilentFormatter.java
java/sql-dk/src/info/globalcode/sql/dk/formatting/SingleValueFormatter.java
java/sql-dk/src/info/globalcode/sql/dk/formatting/TabularFormatter.java
java/sql-dk/src/info/globalcode/sql/dk/formatting/XmlFormatter.java
     1.1 --- a/java/sql-dk/src/info/globalcode/sql/dk/CLIParser.java	Fri Dec 27 15:58:46 2013 +0100
     1.2 +++ b/java/sql-dk/src/info/globalcode/sql/dk/CLIParser.java	Fri Dec 27 16:54:10 2013 +0100
     1.3 @@ -139,22 +139,23 @@
     1.4  
     1.5  	public static class Tokens {
     1.6  
     1.7 -		public static final String DB = "--db"; // bash-completion
     1.8 -		public static final String SQL = "--sql"; // bash-completion
     1.9 -		public static final String BATCH = "--batch"; // bash-completion
    1.10 -		public static final String DATA = "--data"; // bash-completion
    1.11 -		public static final String DATA_NAMED = "--data-named"; // bash-completion
    1.12 -		public static final String NAME_PREFIX = "--name-prefix"; // bash-completion
    1.13 -		public static final String NAME_SUFFIX = "--name-suffix"; // bash-completion
    1.14 -		public static final String TYPES = "--types"; // bash-completion
    1.15 -		public static final String FORMATTER = "--formatter"; // bash-completion
    1.16 -		public static final String INFO_HELP = "--help"; // bash-completion
    1.17 -		public static final String INFO_VERSION = "--version"; // bash-completion
    1.18 -		public static final String INFO_LICENSE = "--license"; // bash-completion
    1.19 -		public static final String INFO_FORMATTERS = "--list-formatters"; // bash-completion
    1.20 -		public static final String INFO_TYPES = "--list-types"; // bash-completion
    1.21 -		public static final String INFO_DATABASES = "--list-databases"; // bash-completion
    1.22 -		public static final String INFO_CONNECTION = "--test-connection"; // bash-completion
    1.23 +		// bash-completion:options:
    1.24 +		public static final String DB = "--db"; // bash-completion:option
    1.25 +		public static final String SQL = "--sql"; // bash-completion:option
    1.26 +		public static final String BATCH = "--batch"; // bash-completion:option
    1.27 +		public static final String DATA = "--data"; // bash-completion:option
    1.28 +		public static final String DATA_NAMED = "--data-named"; // bash-completion:option
    1.29 +		public static final String NAME_PREFIX = "--name-prefix"; // bash-completion:option
    1.30 +		public static final String NAME_SUFFIX = "--name-suffix"; // bash-completion:option
    1.31 +		public static final String TYPES = "--types"; // bash-completion:option
    1.32 +		public static final String FORMATTER = "--formatter"; // bash-completion:option
    1.33 +		public static final String INFO_HELP = "--help"; // bash-completion:option
    1.34 +		public static final String INFO_VERSION = "--version"; // bash-completion:option
    1.35 +		public static final String INFO_LICENSE = "--license"; // bash-completion:option
    1.36 +		public static final String INFO_FORMATTERS = "--list-formatters"; // bash-completion:option
    1.37 +		public static final String INFO_TYPES = "--list-types"; // bash-completion:option
    1.38 +		public static final String INFO_DATABASES = "--list-databases"; // bash-completion:option
    1.39 +		public static final String INFO_CONNECTION = "--test-connection"; // bash-completion:option
    1.40  
    1.41  		private Tokens() {
    1.42  		}
     2.1 --- a/java/sql-dk/src/info/globalcode/sql/dk/Constants.java	Fri Dec 27 15:58:46 2013 +0100
     2.2 +++ b/java/sql-dk/src/info/globalcode/sql/dk/Constants.java	Fri Dec 27 16:54:10 2013 +0100
     2.3 @@ -35,7 +35,7 @@
     2.4  	/**
     2.5  	 * Directory where config and log files are stored.
     2.6  	 */
     2.7 -	public static final File DIR = new File(HOME_DIR, ".sql-dk");
     2.8 +	public static final File DIR = new File(HOME_DIR, ".sql-dk"); // bash-completion:dir
     2.9  	public static final File CONFIG_FILE = new File(DIR, "config.xml");
    2.10  	public static final String EXAMPLE_CONFIG_FILE = "info/globalcode/sql/dk/example-config.xml";
    2.11  
     3.1 --- a/java/sql-dk/src/info/globalcode/sql/dk/formatting/SilentFormatter.java	Fri Dec 27 15:58:46 2013 +0100
     3.2 +++ b/java/sql-dk/src/info/globalcode/sql/dk/formatting/SilentFormatter.java	Fri Dec 27 16:54:10 2013 +0100
     3.3 @@ -25,7 +25,7 @@
     3.4   */
     3.5  public class SilentFormatter extends AbstractFormatter {
     3.6  	
     3.7 -	public static final String NAME = "silent";
     3.8 +	public static final String NAME = "silent"; // bash-completion:formatter
     3.9  
    3.10  	public SilentFormatter(FormatterContext formatterContext) {
    3.11  		super(formatterContext);
     4.1 --- a/java/sql-dk/src/info/globalcode/sql/dk/formatting/SingleValueFormatter.java	Fri Dec 27 15:58:46 2013 +0100
     4.2 +++ b/java/sql-dk/src/info/globalcode/sql/dk/formatting/SingleValueFormatter.java	Fri Dec 27 16:54:10 2013 +0100
     4.3 @@ -28,7 +28,7 @@
     4.4   */
     4.5  public class SingleValueFormatter extends AbstractFormatter {
     4.6  
     4.7 -	public static final String NAME = "single";
     4.8 +	public static final String NAME = "single"; // bash-completion:formatter
     4.9  	private PrintWriter out;
    4.10  
    4.11  	public SingleValueFormatter(FormatterContext formatterContext) {
     5.1 --- a/java/sql-dk/src/info/globalcode/sql/dk/formatting/TabularFormatter.java	Fri Dec 27 15:58:46 2013 +0100
     5.2 +++ b/java/sql-dk/src/info/globalcode/sql/dk/formatting/TabularFormatter.java	Fri Dec 27 16:54:10 2013 +0100
     5.3 @@ -29,7 +29,7 @@
     5.4   */
     5.5  public class TabularFormatter extends AbstractFormatter {
     5.6  
     5.7 -	public static final String NAME = "tabular";
     5.8 +	public static final String NAME = "tabular"; // bash-completion:formatter
     5.9  	private static final String HEADER_TYPE_PREFIX = " (";
    5.10  	private static final String HEADER_TYPE_SUFFIX = ")";
    5.11  	private ColorfulPrintWriter out;
     6.1 --- a/java/sql-dk/src/info/globalcode/sql/dk/formatting/XmlFormatter.java	Fri Dec 27 15:58:46 2013 +0100
     6.2 +++ b/java/sql-dk/src/info/globalcode/sql/dk/formatting/XmlFormatter.java	Fri Dec 27 16:54:10 2013 +0100
     6.3 @@ -23,7 +23,7 @@
     6.4   */
     6.5  public class XmlFormatter extends AbstractFormatter {
     6.6  
     6.7 -	public static final String NAME = "xml";
     6.8 +	public static final String NAME = "xml"; // bash-completion:formatter
     6.9  
    6.10  	public XmlFormatter(FormatterContext formatterContext) {
    6.11  		super(formatterContext);