Skip to content
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

How to use it? Any documentations? #6

Open
aukgit opened this issue Mar 14, 2022 · 5 comments
Open

How to use it? Any documentations? #6

aukgit opened this issue Mar 14, 2022 · 5 comments

Comments

@aukgit
Copy link

aukgit commented Mar 14, 2022

Hello @speijnik

Do you have any documentation, on how to use it?

@aukgit
Copy link
Author

aukgit commented Mar 16, 2022

@speijnik how you have any documentation how to configure a dir for user limit?

@aukgit
Copy link
Author

aukgit commented Mar 16, 2022

Hello @speijnik

Kindly give a format example in the method doc or also in the cli

func parseLimitsFlag(cmd *cobra.Command, flagName string) (soft, hard uint64, present bool, err error) {

From

func parseLimitsFlag(cmd *cobra.Command, flagName string) (soft, hard uint64, present bool, err error) {

To

// parseLimitsFlag
//
//  Takes a flag name and parse flag by comma split
//  Expected value in flag "softLimit,hardlimit"
//
//   Dependent function humanize.ParseBytes
//
// Example:
//  - "2 MB, 4mib" => Soft-limit : 2 mb,  Hard-limit: 2 mb
//  - "6mib, 1MB" => Soft-limit : 6 mb,  Hardl-limit: 1 mb
func parseLimitsFlag(cmd *cobra.Command, flagName string) (soft, hard uint64, present bool, err error) {

@aukgit
Copy link
Author

aukgit commented Mar 16, 2022

@speijnik

@aukgit
Copy link
Author

aukgit commented Mar 16, 2022

#7

@aukgit
Copy link
Author

aukgit commented Mar 16, 2022

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

No branches or pull requests

1 participant