{"html":"<iframe src=\"https://hatenablog-parts.com/embed?url=https%3A%2F%2Fmoapp.hateblo.jp%2Fentry%2F2017%2F01%2F04%2F221623\" title=\"Swift\u3067CLI\u3057\u3084\u3059\u304f\u3059\u308b\u30e2\u30b8\u30e5\u30fc\u30ebSwCLI\u3092\u4f5c\u3063\u3066\u307f\u305f - \u30e2\u30a2\u30a4\u306f\u30b3\u30fc\u30c9\u3092\u66f8\u304f\" class=\"embed-card embed-blogcard\" scrolling=\"no\" frameborder=\"0\" style=\"display: block; width: 100%; height: 190px; max-width: 500px; margin: 10px 0px;\"></iframe>","provider_url":"https://hatena.blog","author_url":"https://blog.hatena.ne.jp/moapp/","blog_title":"\u30e2\u30a2\u30a4\u306f\u30b3\u30fc\u30c9\u3092\u66f8\u304f","width":"100%","author_name":"moapp","title":"Swift\u3067CLI\u3057\u3084\u3059\u304f\u3059\u308b\u30e2\u30b8\u30e5\u30fc\u30ebSwCLI\u3092\u4f5c\u3063\u3066\u307f\u305f","version":"1.0","height":"190","image_url":null,"published":"2017-01-04 22:16:23","categories":["Swift3.0","Swift"],"type":"rich","url":"https://moapp.hateblo.jp/entry/2017/01/04/221623","description":"Swift\u3067CLI\u3057\u3084\u3059\u304f\u3059\u308b\u30e2\u30b8\u30e5\u30fc\u30ebSwCLI\u3092\u4f5c\u3063\u3066\u307f\u305f github.com \u306a\u305c\u4f5c\u3063\u305f\u304b Xcode 8.0\u304b\u3089system\u95a2\u6570\u3092\u30b3\u30fc\u30eb\u3059\u308b\u3068\u30a8\u30e9\u30fc\u306b\u306a\u3063\u305f NSTask\u3067\u6271\u3048\u308b\u304c\u7656\u3092\u628a\u63e1\u3057\u3066\u4f7f\u308f\u306a\u3044\u3068\u3044\u3051\u306a\u3044\u305f\u3081\u3001\u3044\u3061\u3044\u3061\u9762\u5012\u304f\u3055\u3044 \u3068\u3044\u3046\u3053\u3068\u3067\u3042\u308b\u7a0b\u5ea6wrap\u3057\u3066\u6271\u3048\u308b\u3088\u3046\u306b\u3057\u305f\u30e9\u30a4\u30d6\u30e9\u30ea\u3092\u5b9f\u88c5\u3057\u305f\u306e\u3067\u7d39\u4ecb\u3057\u307e\u3059 \u5b9f\u884c let ret = try! SwCLI().runWithRead([\"echo\", \"abc\"]) // -> abc \u5b9f\u884c\u78ba\u8a8d if SwCLI().passes([\"cd\", \"Sources\"]) { // -> changed directory } \u2026","blog_url":"https://moapp.hateblo.jp/","provider_name":"Hatena Blog"}