Download packages/core/src/config/formatter.ts from SaylorTwift/opencode: direct link, hf CLI and curl.
- Browser
- Download file 512 Bytes
-
https://huggingface.co/SaylorTwift/opencode/resolve/main/packages/core/src/config/formatter.ts
- Command line
-
hf download hf://SaylorTwift/opencode/packages/core/src/config/formatter.ts
-
curl -L -o formatter.ts https://huggingface.co/SaylorTwift/opencode/resolve/main/packages/core/src/config/formatter.ts
512 Bytes
| export * as ConfigFormatter from "./formatter" | |
| import { Schema } from "effect" | |
| export class Entry extends Schema.Class<Entry>("ConfigV2.Formatter.Entry")({ | |
| disabled: Schema.Boolean.pipe(Schema.optional), | |
| command: Schema.String.pipe(Schema.Array, Schema.optional), | |
| environment: Schema.Record(Schema.String, Schema.String).pipe(Schema.optional), | |
| extensions: Schema.String.pipe(Schema.Array, Schema.optional), | |
| }) {} | |
| export const Info = Schema.Union([Schema.Boolean, Schema.Record(Schema.String, Entry)]) | |