<?xml version="1.0" encoding="utf-8" standalone="yes"?>
<oembed>
  <author_name>koluku</author_name>
  <author_url>https://blog.hatena.ne.jp/koluku/</author_url>
  <blog_title>koluku's blog</blog_title>
  <blog_url>https://koluku.com/</blog_url>
  <categories>
    <anon>プログラミング</anon>
  </categories>
  <description>TL;DR urfave/cli/v2ではRunContextでContextをもたせることができる（それだけ） 本題 Goでコマンドラインツールを作る際に皆さんはどんなライブラリを使っていますか？自分はflagだと薄いのでちょっと機能を拡張するときに困り、cobraだとライブラリ自体が大きすぎて取り回しづらいという理由からurfave/cliを好んで使ってる。 割と直感的に書きやすいのが魅力で、それでなおかつ拡張しやすいので巨大なツールを作りたいわけでは無いならだいたいこれでいいんじゃないかなぁと思ってる。 Getting Started - urfave/cli func main() {…</description>
  <height>190</height>
  <html>&lt;iframe src=&quot;https://hatenablog-parts.com/embed?url=https%3A%2F%2Fkoluku.com%2Fentry%2F2022%2F09%2F23%2F222813&quot; title=&quot;urfave/cli/v2ではRunContextでContextをもたせることができる - koluku&amp;#39;s blog&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>https://cdn.blog.st-hatena.com/images/theme/og-image-1500.png</image_url>
  <provider_name>Hatena Blog</provider_name>
  <provider_url>https://hatena.blog</provider_url>
  <published>2022-09-23 22:28:13</published>
  <title>urfave/cli/v2ではRunContextでContextをもたせることができる</title>
  <type>rich</type>
  <url>https://koluku.com/entry/2022/09/23/222813</url>
  <version>1.0</version>
  <width>100%</width>
</oembed>
