Skip to content

Unix

Unix(): UnixBuilder

Defined in: packages/core/src/index.ts:41

Create an immutable Unix system builder.

UnixBuilder

A fresh UnixBuilder with no extensions.

The builder accumulates Extensions and produces a frozen UnixImage via .build(). Each method returns a new builder instance — the original is never modified.

import { Unix, stdSystem } from '@fishnet/core'
import { testRuntime } from '@fishnet/runtime'
const image = await Unix()
.use(stdSystem())
.env('EDITOR', 'ed')
.build()
const sys = await testRuntime().boot(image)

Unix(config): UnixInstance

Defined in: packages/core/src/index.ts:49

Create a UnixInstance directly from a config bag.

UnixConfig

Legacy configuration object with fs, bins, and env.

UnixInstance

A UnixInstance ready to boot.