cordova
Version:
Cordova command line interface tool
63 lines (43 loc) • 2.27 kB
Markdown
<!--
#
# Licensed to the Apache Software Foundation (ASF) under one
# or more contributor license agreements. See the NOTICE file
# distributed with this work for additional information
# regarding copyright ownership. The ASF licenses this file
# to you 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.
#
-->
# Supporto di shell bash
Cordova CLI viene fornito con uno script che prevede nella scheda-completamento della riga di comando Bash. Se si sta eseguendo un sufficientemente y Unix sistema operativo (Linux, BSD, OS X) si può installare questo per rendere più facile la digitazione righe di comando di cordova.
## Installazione
### Linux
Per installare un sistema Linux o BSD, copiare la `scripts/cordova.completion` del file al tuo `/etc/bash_completion.d` directory. Questo verrà letta la prossima volta che si avvia una nuova shell.
### OS X
Su OS X, mettere il `scripts/cordova.completion` del file leggibile ovunque e aggiungere la riga seguente alla fine del tuo `~/.bashrc` file:
source <path to>/cordova.completion
Questo verrà letta la prossima volta che si avvia una nuova shell.
## Utilizzo
È facile! Finchè la tua riga di comando inizia con un eseguibile chiamato 'cordova', appena colpito `<TAB>` in qualsiasi punto per vedere una lista dei completamenti validi.
Esempi:
$ cordova <TAB>
build compile create emulate platform plugin prepare serve
$ cordova pla<TAB>
$ cordova platform <TAB>
add ls remove rm
$ cordova platform a<TAB>
$ cordova platform add <TAB>
android blackberry ios wp8 www
$ cordova plugin rm <TAB>
$ cordova plugin rm org.apache.cordova.<TAB>
org.apache.cordova.file org.apache.cordova.inappbrowser