@acaelum/fluxo 中文文档教程

发布于 5年前 浏览 22 项目主页 更新于 3年前

Installation

无需安装。 您可以从此处运行 bash_scripts/fluxo.sh shell 脚本,或将其符号链接到任何您想要的位置。 如果你想要一个全局的 fluxo 命令,你可以用 npm 或 basher 安装这个东西。 但同样,这并不是真正必要的。

with npm

是的,您可以使用 npm 安装这个完全不基于 Node 的 bash 程序。 为什么 npm 中有一个 bash 程序? 没关系。 比特不判断——正如 isaacs 所说的明智的话

npm install -g @acaelum/fluxo

with basher

basher install artdiniz/fluxo

Install manually

  1. Clone this repository in any folder of your choice, e.g. ~/the/folder
  cd ~/the/folder
  git clone https://github.com/artdiniz/fluxo.git
  1. Enable execution permissions for all cloned files:
  chmod -R +x ~/the/folder
  1. Create a git alias in ~/.gitconfig pointing to the fluxo bash script file:
  [alias]
    fluxo = !bash ~/the/folder/fluxo/bash_scripts/fluxo

Usage

你可以运行 -- --help for usage info:

  fluxo <show | diff | rebase | doctor>
  fluxo -- <-h|--help>

  $(tput bold)ACTIONS$(tput sgr0)

    -h | --help      Show detailed instructions

  $(tput bold)FLUXO COMMANDS$(tput sgr0)

    <show | s>           Show branches orderes by fluxo
    <diff | d>           Generate code diff files for each fluxo step
    <rebase | r>         Rebase after changing any fluxo previous steps
    <doctor | dr>        Check fluxo health (Are steps synchronized?)

几乎所有命令都提供使用信息。

Installation

No installation is really necessary. You can run the bash_scripts/fluxo.sh shell script from here, or symlink it wherever you want. If you want a global fluxo command, you could install this thing with npm or basher. But again, that's not really necessary.

with npm

Yes, you can install this bash program that's not based in Node at all, using npm. Why is a bash program in npm anyway? It's fine. Bits don't judge – as wisely said by isaacs

npm install -g @acaelum/fluxo

with basher

basher install artdiniz/fluxo

Install manually

  1. Clone this repository in any folder of your choice, e.g. ~/the/folder
  cd ~/the/folder
  git clone https://github.com/artdiniz/fluxo.git
  1. Enable execution permissions for all cloned files:
  chmod -R +x ~/the/folder
  1. Create a git alias in ~/.gitconfig pointing to the fluxo bash script file:
  [alias]
    fluxo = !bash ~/the/folder/fluxo/bash_scripts/fluxo

Usage

You can run fluxo -- --help for usage info:

  fluxo <show | diff | rebase | doctor>
  fluxo -- <-h|--help>

  $(tput bold)ACTIONS$(tput sgr0)

    -h | --help      Show detailed instructions

  $(tput bold)FLUXO COMMANDS$(tput sgr0)

    <show | s>           Show branches orderes by fluxo
    <diff | d>           Generate code diff files for each fluxo step
    <rebase | r>         Rebase after changing any fluxo previous steps
    <doctor | dr>        Check fluxo health (Are steps synchronized?)

Usage info is available in almost all commands.

    我们使用 Cookies 和其他技术来定制您的体验包括您的登录状态等。通过阅读我们的 隐私政策 了解更多相关信息。 单击 接受 或继续使用网站,即表示您同意使用 Cookies 和您的相关数据。
    原文