<?xml version="1.0" encoding="utf-8" standalone="yes"?>
<oembed>
  <author_name>patorash</author_name>
  <author_url>https://blog.hatena.ne.jp/patorash/</author_url>
  <blog_title>patorashのブログ</blog_title>
  <blog_url>https://patorash.hatenablog.com/</blog_url>
  <categories>
    <anon>Dart</anon>
  </categories>
  <description>Dartのタスクランナーであるgrinderですが、タスクに引数を渡す方法がわかりませんでした。サンプルにも載っていないので、issueの中身を読み漁ったりした結果、とりあえず作れるということはわかりました。 main関数内で定義する github.com 上記のリンクのコードを見る限り、main関数内で、add_task関数を使って定義していくのがよさそうです。 main(args) { addTask(new GrinderTask('foo', taskFunction: () async { var arg1 = context.invocation.options['arg1']; …</description>
  <height>190</height>
  <html>&lt;iframe src=&quot;https://hatenablog-parts.com/embed?url=https%3A%2F%2Fpatorash.hatenablog.com%2Fentry%2F2017%2F11%2F13%2F165516&quot; title=&quot;grinderのタスクに引数を渡す - patorashのブログ&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-11-13 16:55:16</published>
  <title>grinderのタスクに引数を渡す</title>
  <type>rich</type>
  <url>https://patorash.hatenablog.com/entry/2017/11/13/165516</url>
  <version>1.0</version>
  <width>100%</width>
</oembed>
