From ea9a79ae8102148426a6e9944b45845198477130 Mon Sep 17 00:00:00 2001 From: Joey Hess Date: Tue, 11 Mar 2025 12:53:32 -0400 Subject: [PATCH] comment --- ..._d3faa33c3876d6f4883cce19189b7928._comment | 19 +++++++++++++++++++ 1 file changed, 19 insertions(+) create mode 100644 doc/special_remotes/compute/comment_5_d3faa33c3876d6f4883cce19189b7928._comment diff --git a/doc/special_remotes/compute/comment_5_d3faa33c3876d6f4883cce19189b7928._comment b/doc/special_remotes/compute/comment_5_d3faa33c3876d6f4883cce19189b7928._comment new file mode 100644 index 0000000000..3a41e92045 --- /dev/null +++ b/doc/special_remotes/compute/comment_5_d3faa33c3876d6f4883cce19189b7928._comment @@ -0,0 +1,19 @@ +[[!comment format=mdwn + username="joey" + subject="""Re: just thinking out loud""" + date="2025-03-11T16:42:46Z" + content=""" +> And there could be some generic "helper" (or a number of them) which would then provide desired CLI interfacing over arbitrary command + +Absolutely! + +You do need to use "--" before your own custom dashed options. + +And bear in mind that "field=value" parameters passed to initremote will +be passed on to the program. So you can have a generic helper +that is instantiated with a parameter like --command=, which then gets used +automatically when running addcompute: + + git-annex initremote foo type=compute program=git-annex-compute-generic-helper -- --command='convert {inputs} {outputs}' + git-annex addcomputed --to=foo -- -i foo.jpeg -o foo.gif +"""]]