v/vlib/os
Merlin Diavova f3683b7cdc
os: add an .exit_code field to os.Command (#13321)
* Added os.Command.exit_code

* vfmt vlib/os/os_test.v

* extract os.Command to os.v, add a dummy panicing implementation on windows, just for parity, fix os_test.v on macos, skip test_command on windows.

Co-authored-by: Merlin Diavova <md@merlindiaova.org>
Co-authored-by: Delyan Angelov <delian66@gmail.com>
2022-01-30 00:44:52 +02:00
..
bare
cmdline
filelock
font os: add font module, move from gg (#13144) 2022-01-13 12:16:18 +02:00
notify
README.md docs: adding skeleton README.md files for all vlib modules (#13034) 2022-01-05 18:06:08 +02:00
args.v all: update copyright year 2022-01-04 12:21:12 +03:00
const.v
const_nix.c.v
const_windows.c.v
environment.c.v all: update copyright year 2022-01-04 12:21:12 +03:00
environment.js.v js,gg: more work on porting gg to JS backend (#12903) 2021-12-20 16:18:21 +03:00
environment_test.v os: add os.getenv_opt/1 2021-11-19 17:47:45 +02:00
fd.c.v
file.c.v
file.js.v js,gg: more work on porting gg to JS backend (#12903) 2021-12-20 16:18:21 +03:00
file_test.v os: re-add the leak in os.join_path (the `os.join_path(x, ...arr)` case should be handled by V). Add a memleak free os.join_path_single version. 2021-11-22 14:40:55 +02:00
glob_test.v
inode.c.v all: update copyright year 2022-01-04 12:21:12 +03:00
inode_test.v
open_uri_default.c.v
open_uri_windows.c.v
os.c.v os: re-add the leak in os.join_path (the `os.join_path(x, ...arr)` case should be handled by V). Add a memleak free os.join_path_single version. 2021-11-22 14:40:55 +02:00
os.js.v js,os: fix `return` in `or` blocks; Properly get path_delimiter and path_separator in JS (#13179) 2022-01-15 09:55:03 +02:00
os.v os: add an .exit_code field to os.Command (#13321) 2022-01-30 00:44:52 +02:00
os_android.c.v android: fix and test compilation to raw Android C code (#13080) 2022-01-07 16:57:05 +02:00
os_darwin.c.v all: update copyright year 2022-01-04 12:21:12 +03:00
os_js.js.v js,os: fix integer arithmetic; add Process.close() and os.is_readable() for VJS; Make tetris run on JS backend (#12940) 2021-12-23 11:36:42 +02:00
os_linux.c.v all: update copyright year 2022-01-04 12:21:12 +03:00
os_nix.c.v os: add an .exit_code field to os.Command (#13321) 2022-01-30 00:44:52 +02:00
os_structs_dirent_default.c.v os: move C struct declarations in their own _default.c.v files (#12268) 2021-10-22 17:08:08 +03:00
os_structs_sigaction_default.c.v os: move C struct declarations in their own _default.c.v files (#12268) 2021-10-22 17:08:08 +03:00
os_structs_stat_default.c.v os: move C struct declarations in their own _default.c.v files (#12268) 2021-10-22 17:08:08 +03:00
os_structs_stat_linux.c.v os: move C struct declarations in their own _default.c.v files (#12268) 2021-10-22 17:08:08 +03:00
os_structs_utsname_default.c.v os: move C struct declarations in their own _default.c.v files (#12268) 2021-10-22 17:08:08 +03:00
os_test.v os: add an .exit_code field to os.Command (#13321) 2022-01-30 00:44:52 +02:00
os_windows.c.v os: add an .exit_code field to os.Command (#13321) 2022-01-30 00:44:52 +02:00
process.c.v
process.js.v js,os: fix integer arithmetic; add Process.close() and os.is_readable() for VJS; Make tetris run on JS backend (#12940) 2021-12-23 11:36:42 +02:00
process.v
process_nix.c.v
process_test.v os: add os.quoted_path/1, use it consistently for running V itself 2022-01-22 21:13:28 +02:00
process_windows.c.v
signal.c.v os: add support for signal handling on JS backend (#12818) 2021-12-13 20:18:12 +02:00
signal.js.v os: add support for signal handling on JS backend (#12818) 2021-12-13 20:18:12 +02:00
signal.v os: add support for signal handling on JS backend (#12818) 2021-12-13 20:18:12 +02:00
signal_test.v

README.md

Description:

os provides common OS/platform independent functions for accessing command line arguments, reading/writing files, listing folders, handling processes etc.