Download packages/tui/src/context/args.tsx from SaylorTwift/opencode: direct link, hf CLI and curl.
- Browser
- Download file 332 Bytes
-
https://huggingface.co/SaylorTwift/opencode/resolve/main/packages/tui/src/context/args.tsx
- Command line
-
hf download hf://SaylorTwift/opencode/packages/tui/src/context/args.tsx
-
curl -L -o args.tsx https://huggingface.co/SaylorTwift/opencode/resolve/main/packages/tui/src/context/args.tsx
332 Bytes
| import { createSimpleContext } from "./helper" | |
| export interface Args { | |
| model?: string | |
| agent?: string | |
| prompt?: string | |
| continue?: boolean | |
| sessionID?: string | |
| fork?: boolean | |
| auto?: boolean | |
| } | |
| export const { use: useArgs, provider: ArgsProvider } = createSimpleContext({ | |
| name: "Args", | |
| init: (props: Args) => props, | |
| }) | |