npm.io
1.0.2 • Published 8 years ago

@umm/command_runner

Licence
MIT
Version
1.0.2
Deps
5
Size
18 kB
Vulns
0
Weekly
0
Install scriptsThis package runs scripts during installation (preinstall/install/postinstall)

Command Runner

  • cli コマンドを実行

Requirement

  • Unity 2017

Install

yarn add github:umm-projects/command_runner

Usage

using UnityModule.Command;
using UnityEngine;

public class Sample {

    public void Run() {
        Debug.Log(Runner<string>.Run("git", "status"));
    }

}
  • Runner クラスの型引数に UniRx.IObservable<T> を指定すると UniRx による非同期処理を行います

License

Copyright (c) 2018 Tetsuya Mori

Released under the MIT license, see LICENSE.txt