{"id":320,"date":"2021-05-12T14:19:47","date_gmt":"2021-05-12T13:19:47","guid":{"rendered":"https:\/\/amasan.co.uk\/vandragt\/?p=320"},"modified":"2021-05-12T14:19:47","modified_gmt":"2021-05-12T13:19:47","slug":"taskfile-gains-local-taskfile-editing-refinement","status":"publish","type":"post","link":"https:\/\/2022.vandragt.com\/project\/taskfile-gains-local-taskfile-editing-refinement\/","title":{"rendered":"Taskfile gains local .Taskfile editing refinement"},"content":{"rendered":"\n<p><em>Taskfile runs task files, a bash (or zsh etc.) script that contains functions that can be called via the runner. These files must be called .Taskfile. The runner detects any taskfiles in the current, parent, grandparent etc directory of the directory you&#8217;re in.<\/em><\/p>\n\n\n\n<div class=\"wp-block-image\"><figure class=\"aligncenter size-large\"><img loading=\"lazy\" decoding=\"async\" width=\"424\" height=\"438\" src=\"https:\/\/2022.vandragt.com\/wp-content\/uploads\/sites\/13\/2021\/05\/Taskfile-example.png\" alt=\"\" class=\"wp-image-321\" srcset=\"https:\/\/2022.vandragt.com\/wp-content\/uploads\/sites\/13\/2021\/05\/Taskfile-example.png 424w, https:\/\/2022.vandragt.com\/wp-content\/uploads\/sites\/13\/2021\/05\/Taskfile-example-290x300.png 290w\" sizes=\"auto, (max-width: 424px) 100vw, 424px\" \/><figcaption>Example Taskfile output from the help command.<\/figcaption><\/figure><\/div>\n\n\n\n<p>I&#8217;ve refined the <kbd>edit<\/kbd> task that ships with the script so that it opens the <kbd>.Taskfile<\/kbd> in the current directory if it exists, before falling back to editing the runner.<\/p>\n\n\n\n<div class=\"wp-block-buttons is-layout-flex wp-block-buttons-is-layout-flex\">\n<div class=\"wp-block-button\"><a class=\"wp-block-button__link\" href=\"https:\/\/github.com\/svandragt\/Taskfile\/\">View the source on GitHub<\/a><\/div>\n<\/div>\n\n\n\n<p><\/p>\n<div class=\"syndication-links\"><\/div>","protected":false},"excerpt":{"rendered":"<p>Taskfile runs task files, a bash (or zsh etc.) script that contains functions that can be called via the runner. These files must be called .Taskfile. The runner detects any taskfiles in the current, parent, grandparent etc directory of the directory you&#8217;re in. I&#8217;ve refined the edit task that ships with the script so that [&hellip;]<\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"mf2_syndication":[],"webmentions_disabled_pings":false,"webmentions_disabled":false,"footnotes":""},"categories":[4],"tags":[28],"class_list":["post-320","post","type-post","status-publish","format-standard","hentry","category-project","tag-taskfile"],"_links":{"self":[{"href":"https:\/\/amasan.co.uk\/vandragt\/wp-json\/wp\/v2\/posts\/320","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/amasan.co.uk\/vandragt\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/amasan.co.uk\/vandragt\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/amasan.co.uk\/vandragt\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/amasan.co.uk\/vandragt\/wp-json\/wp\/v2\/comments?post=320"}],"version-history":[{"count":1,"href":"https:\/\/amasan.co.uk\/vandragt\/wp-json\/wp\/v2\/posts\/320\/revisions"}],"predecessor-version":[{"id":322,"href":"https:\/\/amasan.co.uk\/vandragt\/wp-json\/wp\/v2\/posts\/320\/revisions\/322"}],"wp:attachment":[{"href":"https:\/\/amasan.co.uk\/vandragt\/wp-json\/wp\/v2\/media?parent=320"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/amasan.co.uk\/vandragt\/wp-json\/wp\/v2\/categories?post=320"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/amasan.co.uk\/vandragt\/wp-json\/wp\/v2\/tags?post=320"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}