File: README.md

package info (click to toggle)
golang-github-tredoe-osutil 1.5.0-2
  • links: PTS, VCS
  • area: main
  • in suites: forky, sid, trixie
  • size: 476 kB
  • sloc: makefile: 4
file content (32 lines) | stat: -rw-r--r-- 1,216 bytes parent folder | download
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
# osutil

Access to operating system functionality dependent of every platform and
utility packages for the Shell.

+ config/env: set persistent environment variables
+ config/shconf: parser and scanner for the configuration in format shell-variable
+ distro: detects the Linux distribution
+ file: common operations in files
+ pkg: basic operations for the management of packages in operating systems
+ sh: interprets a command line like it is done in the Bash shell
+ user: provides access to UNIX users database in local files
+ user/crypt: password hashing used in UNIX

[Documentation online](http://godoc.org/github.com/tredoe/osutil)

## Testing

`go test ./...`

`sudo env PATH=$PATH go test -v ./...`

'sudo' command is necessary to copy the files '/etc/{passwd,group,shadow,gshadow}' to the temporary directory, where the tests are run.
Also, it uses 'sudo' to check the package manager, at installing and removing the package 'mtr-tiny'.


## License

The source files are distributed under the [Mozilla Public License, version 2.0](http://mozilla.org/MPL/2.0/),
unless otherwise noted.  
Please read the [FAQ](http://www.mozilla.org/MPL/2.0/FAQ.html)
if you have further questions regarding the license.