Install scriptsThis package runs scripts during installation (preinstall/install/postinstall)
git
- git コマンドの Unity 実装
Requirement
- Unity 2017.1
- git
- hub (Optional)
Install
$ npm install github:umm-projects/git
Usage
実装済のクラス
実装済のサブコマンド
addbranchcheckoutcommitpushrev-parsermpull-requesthubコマンドを利用
同期的にコマンドを実行する
Git.Add(new [] { "hoge.txt", "fuga.cs", });
Git.Commit("message for commit");
Git.Push("any_branch_name");
非同期的にコマンドを実行する
// 書き方を統一するために、空の Unit を吐き出すところから開始している
Observable.Return(Unit.Default)
.SelectMany(_ => GitAsync.Add(new [] { "hoge.txt", "fuga.cs", }))
.SelectMany(_ => GitAsync.Commit("message for commit"))
.SelectMany(_ => GitAsync.Push("any_branch_name"))
.Subscribe();
License
Copyright (c) 2017-2018 Tetsuya Mori
Released under the MIT license, see LICENSE.txt