nodekit-cli
Version:
A command-line tool for creating {NK} NodeKit applications
63 lines (43 loc) • 2.23 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.
#
-->
# Soporte shell Bash
NodeKit 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 nodekit.
## Instalación
### Linux
Para instalar en un sistema Linux o BSD, copiar el `scripts/nodekit.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).
### OS X
En OS X, ponga el `scripts/nodekit.completion` archivo legible en cualquier lugar y añadir la siguiente línea al final de su archivo `~/.bashrc` :
source <path to>/nodekit.completion
Esto se leerá la próxima vez que empieces una nueva shell.
## Uso
¡Es Fácil! Siempre y cuando la linea comienze con un ejecutable llamado 'nodekit', sólo presiona `<TAB>` en cualquier momento para ver la lista de terminaciones vólidas.
Ejemplos:
$ 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