UNPKG

2.29 kBMarkdownView Raw
1<!--
2#
3# Licensed to the Apache Software Foundation (ASF) under one
4# or more contributor license agreements. See the NOTICE file
5# distributed with this work for additional information
6# regarding copyright ownership. The ASF licenses this file
7# to you under the Apache License, Version 2.0 (the
8# "License"); you may not use this file except in compliance
9# with the License. You may obtain a copy of the License at
10#
11# http://www.apache.org/licenses/LICENSE-2.0
12#
13# Unless required by applicable law or agreed to in writing,
14# software distributed under the License is distributed on an
15# "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
16# KIND, either express or implied. See the License for the
17# specific language governing permissions and limitations
18# under the License.
19#
20-->
21
22# Support du shell bash
23
24Cordova CLI est livré avec un script de ligne de commande saisie semi-automatique par tabulation pour Bash. Si vous utilisez un suffisamment Unix-y système d'exploitation (Linux, BSD, OS X), vous pouvez installer ceci pour faciliter les lignes de commande frappe cordova.
25
26## Installation
27
28### Linux
29
30Pour installer sur un système Linux ou BSD, copiez le `scripts/cordova.completion` fichier vers votre `/etc/bash_completion.d` répertoire. Il indiquera la prochaine fois que vous démarrez un nouveau shell.
31
32### OS X
33
34Sur OS X, mettre le `scripts/cordova.completion` fichier lisible n'importe où et ajoutez la ligne suivante à la fin de votre `~/.bashrc` fichier :
35
36 source <path to>/cordova.completion
37
38
39Il indiquera la prochaine fois que vous démarrez un nouveau shell.
40
41## Utilisation
42
43C'est facile ! Tant que votre ligne de commande commence par un exécutable nommé « cordova », vient de frapper `<TAB>` à tout moment pour voir une liste des complètements valides.
44
45Exemples :
46
47 $ cordova <TAB>
48 build compile create emulate platform plugin prepare serve
49
50 $ cordova pla<TAB>
51
52 $ cordova platform <TAB>
53 add ls remove rm
54
55 $ cordova platform a<TAB>
56
57 $ cordova platform add <TAB>
58 android blackberry ios wp8 www
59
60 $ cordova plugin rm <TAB>
61
62 $ cordova plugin rm org.apache.cordova.<TAB>
63 org.apache.cordova.file org.apache.cordova.inappbrowser
\No newline at end of file