Skip to content

feat:Add tab suggestions for --set flag#5000

Open
Aneesh-Hegde wants to merge 1 commit into
lima-vm:masterfrom
Aneesh-Hegde:cli-tab-feature
Open

feat:Add tab suggestions for --set flag#5000
Aneesh-Hegde wants to merge 1 commit into
lima-vm:masterfrom
Aneesh-Hegde:cli-tab-feature

Conversation

@Aneesh-Hegde
Copy link
Copy Markdown
Contributor

@Aneesh-Hegde Aneesh-Hegde force-pushed the cli-tab-feature branch 3 times, most recently from df2a0d4 to b460887 Compare May 18, 2026 09:21
".copyToHost", ".message", ".networks", ".env", ".param", ".dns",
".hostResolver", ".propagateProxyEnv", ".caCerts", ".rosetta", ".plain",
".timezone", ".nestedVirtualization", ".user",
}
Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This should use reflection to avoid hard coding property names

Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Done. Also for --set tab completion on slice fields like .images, .mounts, .additionalDisks, should we complete sub-fields using index syntax (.images[0].location=) or leave them as leaf completions

Comment thread cmd/limactl/tab_completion.go Outdated
limatype.REVSSHFS, limatype.NINEP,
limatype.VIRTIOFS, limatype.WSLMount,
},
".mountInotify": {"true", "false"},
Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Use reflection to detect boolean property names

Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Acknowledged

Signed-off-by: Aneesh-Hegde <aneeshhegde7110@gmail.com>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

limactl create --set <TAB> should show available properties

2 participants