Преглед на файлове

[doc] command descriptions

Adam Tauber преди 9 години
родител
ревизия
1e4f0bedc5
променени са 1 файла, в които са добавени 25 реда и са изтрити 1 реда
  1. 25
    1
      manage.sh

+ 25
- 1
manage.sh Целия файл

@@ -66,4 +66,28 @@ locales() {
66 66
 	pybabel compile -d "$SEARX_DIR/translations"
67 67
 }
68 68
 
69
-$ACTION
69
+help() {
70
+    [ -z "$1" ] || echo "Error: $1\n"
71
+    echo "Searx manage.sh help
72
+
73
+Commands
74
+========
75
+    grunt_build          - Build js files
76
+    help                 - This text
77
+    locales              - Compile locales
78
+    pep8_check           - Pep8 validation
79
+    py_test_coverage     - Unit test coverage
80
+    robot_tests          - Run selenium tests
81
+    styles               - Build less files
82
+    tests                - Run all python tests (pep8, unit, robot)
83
+    unit_tests           - Run unit tests
84
+    update_dev_packages  - Check & update development only dependency changes
85
+    update_packages      - Check & update dependency changes
86
+"
87
+}
88
+
89
+if type $ACTION 1>/dev/null; then
90
+    $ACTION
91
+else
92
+    help "action not found"
93
+fi