UNPKG

2.45 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# Bash シェルのサポート
23
24コルドバの CLI は、Bash のコマンドラインのタブ補完を提供するスクリプトが付属しています。 十分に Unix y オペレーティング システム (Linux、BSD、OS X) を実行している場合入力コルドバ コマンド ・ ラインを容易にこれをインストールできます。
25
26## インストール
27
28### Linux
29
30Linux や BSD のシステムをインストールするコピー、 `scripts/cordova.completion` ファイルを `/etc/bash_completion.d` ディレクトリ。これは次に新しいシェルを起動したときに読み取られます。
31
32### OS X
33
34OS X に入れて、 `scripts/cordova.completion` ファイルのどこにでも読みやすいとの末尾に次の行を追加、 `~/.bashrc` ファイル。
35
36 source <path to>/cordova.completion
37
38
39これは次に新しいシェルを起動したときに読み取られます。
40
41## 使い方
42
43それは簡単です !コマンド ライン 'コルドバ' と呼ばれる実行可能ファイルで始まる限り、ちょうどヒット `<TAB>` 有効な入力候補の一覧を表示する任意の時点で。
44
45例:
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