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 shell 支援
|
23 |
|
24 | 科爾多瓦 CLI 捆綁了一個腳本,為 Bash 提供了命令列選項卡完成。 如果您正在運行一個足夠 Unix-y 的作業系統 (Linux,BSD,OS X) 你可以安裝此包以方便打字科爾多瓦命令列。
|
25 |
|
26 | ## 安裝
|
27 |
|
28 | ### Linux
|
29 |
|
30 | 若要在一個 Linux 或 BSD 系統上安裝,請複製 `scripts/cordova.completion` 檔到你 `/etc/bash_completion.d` 目錄。這將會讀取下次你開始一個新的 shell。
|
31 |
|
32 | ### OS X
|
33 |
|
34 | 在 OS X 上,把 `scripts/cordova.completion` 檔在任何地方可讀的並將以下行添加到年底你 `~/.bashrc` 檔:
|
35 |
|
36 | source <path to>/cordova.completion
|
37 |
|
38 |
|
39 | 這將會讀取下次你開始一個新的 shell。
|
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 |