Closed robrecord closed 1 year ago
I had planned on setting --workdir
to either /srv/www/example.com
or /srv/www/example.com/current
automatically as a default. We could also let people override that in the CLI config file.
Additionally, I do think a flag override would be helpful too.
I've also thought about just mounting those two default dirs so lima doesn't complain; it's annoying they don't a way to avoid that. I could always contribute an upstream fix 🤷♂️
Thank you for this!
Terms
Summary
As I understand it,
trellis vm shell
is a wrapper forlimactl shell <project_name>
. Until recently, the lima docs incorrectly reported the order of parameters. Now it'slimactl shell [<options>] <project_name> [<command>]
. Could it be possiblt to allow trellis-cli to pass options such as--workdir
, or even set them automatically?So trellis vm shell would be a wrapper for, and anything else after a
limactl shell --workdir /srv/www/<project_name>/current <project_name>
and would include any user-specified extra params before the--
.Hope that makes sense?
Motivation
Why are we doing this?
What use cases does it support?
Better use of SSH into VM
What is the expected outcome?
More control and convenience
Potential conflicts / foreseeable issues
Additional Context
https://github.com/lima-vm/lima/pull/1444
with trellis:
with limactl: