Skip to content

Comments

feat: support suffixes for memory amounts#383

Open
viviveevee wants to merge 4 commits intomainfrom
SDK-2572-use-a-memory-parser-for-all-the-cli-memory-inputs
Open

feat: support suffixes for memory amounts#383
viviveevee wants to merge 4 commits intomainfrom
SDK-2572-use-a-memory-parser-for-all-the-cli-memory-inputs

Conversation

@viviveevee
Copy link
Contributor

@viviveevee viviveevee commented Feb 23, 2026

Support kb, kib, mb, mib, gb, gib suffixes in .yaml files and CLI arguments when specifying memory amounts

@viviveevee viviveevee marked this pull request as ready for review February 23, 2026 13:20
@viviveevee viviveevee requested a review from a team as a code owner February 23, 2026 13:20

#[arg(long, value_parser = memory_parser)]
memory_allocation: Option<Byte>,
/// Memory allocation. Supports suffixes: kb, kib, mb, mib, gb, gib (e.g. "4gib" or "2.5kb").
Copy link
Contributor

Choose a reason for hiding this comment

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

For all these parameters should we say what unit without suffix is? eg

Suggested change
/// Memory allocation. Supports suffixes: kb, kib, mb, mib, gb, gib (e.g. "4gib" or "2.5kb").
/// Memory allocation in bytes. Supports suffixes: kb, kib, mb, mib, gb, gib (e.g. "4gib" or "2.5kb").

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.

2 participants