Skip to content

Conversation

@jiangliu
Copy link
Contributor

Refactor ConfigBuilder as GlobalOpts to follow the runc man pages, and move all commandline parsing related code into options.rs.

Introduce helper path_to_string() to avoid using unwrap().

Signed-off-by: Liu Jiang <gerry@linux.alibaba.com>
Rename ConfigBuilder as GlobalOpts and moves it into options.rs,
to follow the runc man pages.

Signed-off-by: Liu Jiang <gerry@linux.alibaba.com>
Move runc commandline related constants into options.rs, so options.rs
hosts all commandline parsing related code. And util.rs only hosts
utilities.

Signed-off-by: Liu Jiang <gerry@linux.alibaba.com>
Add a unit test case for GlobalOpts.

Signed-off-by: Liu Jiang <gerry@linux.alibaba.com>
@jiangliu jiangliu force-pushed the globalotps branch 2 times, most recently from b67b6ce to d170d62 Compare February 14, 2022 09:32
Copy link
Member

@mxpv mxpv left a comment

Choose a reason for hiding this comment

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

This looks good!

}
}

//<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<
Copy link
Member

Choose a reason for hiding this comment

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

Remove this?

@mxpv mxpv merged commit 7a55e0f into containerd:main Feb 14, 2022
Burning1020 pushed a commit to Burning1020/rust-extensions that referenced this pull request May 15, 2024
sandbox: use args from sandboxer instead of os
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