UNPKG

2.27 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# Soporte shell Bash
23
24Cordova CLI viene junto con un script que proporciona ficha-terminación de línea de comandos para Bash. Si usted está utilizando un sistema operativo bastante Unix-y (Linux, BSD, OS X) usted puede instalar esto para hacer más fácil escribir líneas de comandos cordova.
25
26## Instalación
27
28### Linux
29
30Para instalar en un sistema Linux o BSD, copiar el `scripts/cordova.completion` de archivos a tu directorio `/etc/bash_completion.d`. Esto se leerá la próxima vez que empieces una nueva shell (línea de comandos).
31
32### OS X
33
34En OS X, ponga el `scripts/cordova.completion` archivo legible en cualquier lugar y añadir la siguiente línea al final de su archivo `~/.bashrc` :
35
36 source <path to>/cordova.completion
37
38
39Esto se leerá la próxima vez que empieces una nueva shell.
40
41## Uso
42
43¡Es Fácil! Siempre y cuando la linea comienze con un ejecutable llamado 'cordova', sólo presiona `<TAB>` en cualquier momento para ver la lista de terminaciones vólidas.
44
45Ejemplos:
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