<?xml version="1.0" encoding="utf-8" standalone="yes"?>
<oembed>
  <author_name>moapp</author_name>
  <author_url>https://blog.hatena.ne.jp/moapp/</author_url>
  <blog_title>モアイはコードを書く</blog_title>
  <blog_url>https://moapp.hateblo.jp/</blog_url>
  <categories>
    <anon>Swift3.0</anon>
    <anon>Swift</anon>
  </categories>
  <description>SwiftでCLIしやすくするモジュールSwCLIを作ってみた github.com なぜ作ったか Xcode 8.0からsystem関数をコールするとエラーになった NSTaskで扱えるが癖を把握して使わないといけないため、いちいち面倒くさい ということである程度wrapして扱えるようにしたライブラリを実装したので紹介します 実行 let ret = try! SwCLI().runWithRead([&quot;echo&quot;, &quot;abc&quot;]) // -&gt; abc 実行確認 if SwCLI().passes([&quot;cd&quot;, &quot;Sources&quot;]) { // -&gt; changed directory } …</description>
  <height>190</height>
  <html>&lt;iframe src=&quot;https://hatenablog-parts.com/embed?url=https%3A%2F%2Fmoapp.hateblo.jp%2Fentry%2F2017%2F01%2F04%2F221623&quot; title=&quot;SwiftでCLIしやすくするモジュールSwCLIを作ってみた - モアイはコードを書く&quot; class=&quot;embed-card embed-blogcard&quot; scrolling=&quot;no&quot; frameborder=&quot;0&quot; style=&quot;display: block; width: 100%; height: 190px; max-width: 500px; margin: 10px 0px;&quot;&gt;&lt;/iframe&gt;</html>
  <image_url></image_url>
  <provider_name>Hatena Blog</provider_name>
  <provider_url>https://hatena.blog</provider_url>
  <published>2017-01-04 22:16:23</published>
  <title>SwiftでCLIしやすくするモジュールSwCLIを作ってみた</title>
  <type>rich</type>
  <url>https://moapp.hateblo.jp/entry/2017/01/04/221623</url>
  <version>1.0</version>
  <width>100%</width>
</oembed>
