summaryrefslogtreecommitdiffstats
path: root/src/main/java/com/gitblit/transport/ssh/commands/UsageExamples.java
diff options
context:
space:
mode:
authorJames Moger <james.moger@gitblit.com>2014-03-26 21:33:21 -0400
committerJames Moger <james.moger@gitblit.com>2014-04-10 18:58:10 -0400
commit617909819cd1b955647dd8584036fc7b2a014265 (patch)
tree0c608817a000fba9f25984b0f37c0167c7c881d6 /src/main/java/com/gitblit/transport/ssh/commands/UsageExamples.java
parentec9703a5aa4bda8d764537ea040e464bd422980b (diff)
downloadgitblit-617909819cd1b955647dd8584036fc7b2a014265.tar.gz
gitblit-617909819cd1b955647dd8584036fc7b2a014265.zip
Improve command help with formatting and usage examples
Diffstat (limited to 'src/main/java/com/gitblit/transport/ssh/commands/UsageExamples.java')
-rw-r--r--src/main/java/com/gitblit/transport/ssh/commands/UsageExamples.java31
1 files changed, 31 insertions, 0 deletions
diff --git a/src/main/java/com/gitblit/transport/ssh/commands/UsageExamples.java b/src/main/java/com/gitblit/transport/ssh/commands/UsageExamples.java
new file mode 100644
index 00000000..0193a98a
--- /dev/null
+++ b/src/main/java/com/gitblit/transport/ssh/commands/UsageExamples.java
@@ -0,0 +1,31 @@
+/*
+ * Copyright 2014 gitblit.com.
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License");
+ * you may not use this file except in compliance with the License.
+ * You may obtain a copy of the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS,
+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+ * See the License for the specific language governing permissions and
+ * limitations under the License.
+ */
+package com.gitblit.transport.ssh.commands;
+
+import static java.lang.annotation.RetentionPolicy.RUNTIME;
+
+import java.lang.annotation.ElementType;
+import java.lang.annotation.Retention;
+import java.lang.annotation.Target;
+
+/**
+* Annotation tagged on a concrete Command to describe how to use it.
+*/
+@Target({ElementType.TYPE})
+@Retention(RUNTIME)
+public @interface UsageExamples {
+UsageExample [] examples() default {};
+}