nodekit-cli
Version:
A command-line tool for creating {NK} NodeKit applications
63 lines (43 loc) • 2.08 kB
Markdown
<!--
#
# Licensed to OffGrid Networks (OGN) under one
# or more contributor license agreements. See the NOTICE file
# distributed with this work for additional information
# regarding copyright ownership. OGN 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://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.
#
-->
# Bash shell 支援
科爾多瓦 CLI 捆綁了一個腳本,為 Bash 提供了命令列選項卡完成。 如果您正在運行一個足夠 Unix-y 的作業系統 (Linux,BSD,OS X) 你可以安裝此包以方便打字科爾多瓦命令列。
## 安裝
### Linux
若要在一個 Linux 或 BSD 系統上安裝,請複製 `scripts/nodekit.completion` 檔到你 `/etc/bash_completion.d` 目錄。這將會讀取下次你開始一個新的 shell。
### OS X
在 OS X 上,把 `scripts/nodekit.completion` 檔在任何地方可讀的並將以下行添加到年底你 `~/.bashrc` 檔:
source <path to>/nodekit.completion
這將會讀取下次你開始一個新的 shell。
## 用法
是容易的 !只要您的命令列與可執行檔叫做 '科爾多瓦' 開始,剛打了 `<TAB>` 在任何點要查看清單的有效完成。
例子:
$ nodekit <TAB>
build compile create emulate platform plugin prepare serve
$ nodekit pla<TAB>
$ nodekit platform <TAB>
add ls remove rm
$ nodekit platform a<TAB>
$ nodekit platform add <TAB>
android macos ios windows nodejs
$ nodekit plugin rm <TAB>
$ nodekit plugin rm io.nodekit.<TAB>
io.nodekit.file io.nodekit.inappbrowser