Repository

osutil

Utilities for interacting with the underlying operating system.

Installation

You can install this package either from VPM or from GitHub:

v install prantlf.osutil
v install --git https://github.com/prantlf/v-osutil

API

The following types and functions are exported:

Types

pub struct ExecuteOpts {
  trim_leading_whitespace  bool
  trim_trailing_whitespace bool
  trim_leading_line_break bool
  trim_trailing_line_break bool = true
}

Functions

execute(cmd string) !string
execute_opt(cmd string, opts &ExecuteOpts) !string

Contributing

In lieu of a formal styleguide, take care to maintain the existing coding style. Lint and test your code.

License

Copyright (c) 2023 Ferdinand Prantl

Licensed under the MIT license.

About

Utilities for interacting with the underlying operating system.

0
146
last Aug 18

Author

prantlf