-
Notifications
You must be signed in to change notification settings - Fork 624
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Add feature to show resulting config #443
Comments
And I have wondered what the use case was for that as well: #280 (comment)
Useful for what? Just removing the comments? $ yq eval '... comments=""' /usr/local/share/doc/lima/examples/default.yaml
arch: "default"
images:
- location: "~/Downloads/impish-server-cloudimg-amd64.img"
arch: "x86_64"
- location: "~/Downloads/impish-server-cloudimg-arm64.img"
arch: "aarch64"
- location: "https://cloud-images.ubuntu.com/impish/current/impish-server-cloudimg-amd64.img"
arch: "x86_64"
- location: "https://cloud-images.ubuntu.com/impish/current/impish-server-cloudimg-arm64.img"
arch: "aarch64"
cpus: 4
memory: "4GiB"
disk: "100GiB"
mounts:
- location: "~"
writable: false
- location: "/tmp/lima"
writable: true
ssh:
localPort: 0
loadDotSSHPubKeys: true
forwardAgent: false
containerd:
system: false
user: true
firmware:
legacyBIOS: false
video:
display: "none"
networks:
propagateProxyEnv: true
useHostResolver: true I would find the
Maybe, but not really by a lot.
This I find somewhat useful, except I would want to be able to compare any 2 config files, and not just one file against the default. However, you can mostly already do this with $ diff -u <(yq eval -P '... comments=""' examples/docker.yaml) <(yq eval -P '... comments=""' examples/podman.yaml) But even then I see very little benefit over just running My Main pointI'm concerned about "littering" Not sure what the right level of compromise is, but I feel like both To me the barrier to inclusion in Maybe the commands that don't clear the barrier can be moved to a separate utility/helper tool? |
Maybe we can have
|
I was looking at the similar config command for compose, that is why. But it can be done in the shell instead, using |
I meant that it could be fed back into the tool, as config for another instance. Or diffed. Harder to do, with json vs yaml ? |
Good thing I didn't include the "color diff" then, which was mostly left out due to adding dependencies (and thus some extra bloat) |
Currently the default template is included in
limactl info
, but in a different format (JSON instead of YAML)It would be more useful if it was shown in the same format, without the comments and with values replaced...
Also add a small helper function, to compare a template against the default.
This is more handy than dumping two yaml files and running
diff
on them.The text was updated successfully, but these errors were encountered: