IF Commons GitHub

physical/os

Written to: 1 requirement: 1 proved, 0 partly, 0 failing, 0 with no test recorded. 0004-anyfs-cli-surfaces FR-003

The operating system as the three the program tells apart (commons anyfs-cli 0004-anyfs-cli-surfaces FR-003): the folders of a program and the roots of a path are the same on every Unix, so every system that is neither Windows nor macOS is linux.

import { osOf } from "./os.ts";
osOf(); // "linux"

Source: commons/anyfs-cli/src/physical/os.ts

0 of 2 exports are imported by a test of the run. A test that imports an export may not call it or check what it returns.

OsKindtypeno test imports it
type OsKind = "linux" | "darwin" | "windows";

The system's kind.

osOffunctionno test imports it
function osOf(): OsKind

The system this process runs on.

Titles, headings, exports, tables, columns and requirements. Esc closes.