This message was deleted.
# general
s
This message was deleted.
c
So far I achieved this using:
Copy code
from pulumi import Output, export
from pulumi_command.local import Command

mktemp_create = Command('mktemp-create', create='mktemp')
mktemp_delete = Command('mktemp-delete', delete=Output.format('rm {path}', path=mktemp_create.stdout))
export('tmp_file', mktemp_create.stdout)
But that feels wrong. 🤔
e
I think that's as good as you can do now. The commands are just literal strings and they can't refer to the same command they're created in.
c
OK, good to know, thanks @echoing-dinner-19531!
w
This question has come up a few times recently - I opened https://github.com/pulumi/pulumi-command/issues/167 to track it.
👍 1