Browse Source

Adding stubs for commands

search, show and update
Lertsenem 8 years ago
parent
commit
db1066d22e
3 changed files with 32 additions and 0 deletions
  1. 14 0
      gitlist/commands/search.py
  2. 9 0
      gitlist/commands/show.py
  3. 9 0
      gitlist/commands/update.py

+ 14 - 0
gitlist/commands/search.py

@@ -0,0 +1,14 @@
1
+#!/usr/bin/env python
2
+# -*- coding: utf-8 -*-
3
+
4
+def init(parser):
5
+    """Initialize the command subparser"""
6
+
7
+    parser.add_argument( "pattern",
8
+                         type = str,
9
+                         help = "The pattern we want to search for" )
10
+
11
+    parser.add_argument( "--thourough",
12
+                         action  = "store_true",
13
+                         help    = "Search through all files, not just index" )
14
+    

+ 9 - 0
gitlist/commands/show.py

@@ -0,0 +1,9 @@
1
+#!/usr/bin/env python
2
+# -*- coding: utf-8 -*-
3
+
4
+def init(parser):
5
+    """Initialize the command subparser"""
6
+
7
+    parser.add_argument( "reposhortname",
8
+                         type = str,
9
+                         help = "The repo you want to see details of" )

+ 9 - 0
gitlist/commands/update.py

@@ -0,0 +1,9 @@
1
+#!/usr/bin/env python
2
+# -*- coding: utf-8 -*-
3
+
4
+def init(parser):
5
+    """Initialize the command subparser"""
6
+
7
+    parser.add_argument( "reposhortname",
8
+                         type = str,
9
+                         help = "The repo we want to clone shortname" )