text
Text; required unless there's a default.
import { valid } from "#codebase/tcmts/cli/commands"; import type { Schema } from "#codebase/tcmts/cli/commands"; export function text(): Schema<string>; export function text(fallback: string): Schema<string>; export function text(fallback: undefined | null): Schema<string | undefined>; export function text(fallback?: string | null): Schema<string | undefined> { return valid((v) => (typeof v === "string" ? { value: v } : v === undefined && fallback !== undefined ? { value: fallback ?? undefined } : { issues: [{ message: "required" }] })); }
uses
used by
- tcmts.cli.commands.file
- tcmts.cli.commands.http
- tcmts.cli.commands.into
- tcmts.cli.commands.message
- tcmts.cli.commands.readBranch
- tcmts.cli.commands.remote
- tcmts.cli.commands.routeAlias
- tcmts.cli.commands.routeAt
- tcmts.cli.commands.routeBranch
- tcmts.cli.commands.routeBuild
- tcmts.cli.commands.routeBuilds
- tcmts.cli.commands.routeChangelog
- tcmts.cli.commands.routeComplete
- tcmts.cli.commands.routeContribute
- tcmts.cli.commands.routeContribution
- tcmts.cli.commands.routeData
- tcmts.cli.commands.routeDependents
- tcmts.cli.commands.routeDeps
- tcmts.cli.commands.routeDescribe
- tcmts.cli.commands.routeDev
- tcmts.cli.commands.routeDocs
- tcmts.cli.commands.routeEdit
- tcmts.cli.commands.routeExport
- tcmts.cli.commands.routeFmt
- tcmts.cli.commands.routeImport
- tcmts.cli.commands.routeJobs
- tcmts.cli.commands.routeLib
- tcmts.cli.commands.routeLint
- tcmts.cli.commands.routeLs
- tcmts.cli.commands.routeMcp
- tcmts.cli.commands.routeMerge
- tcmts.cli.commands.routeMv
- tcmts.cli.commands.routePack
- tcmts.cli.commands.routePatch
- tcmts.cli.commands.routePull
- tcmts.cli.commands.routePush
- tcmts.cli.commands.routeRegistry
- tcmts.cli.commands.routeRelease
- tcmts.cli.commands.routeReleases
- tcmts.cli.commands.routeRemote
- tcmts.cli.commands.routeReset
- tcmts.cli.commands.routeResolve
- tcmts.cli.commands.routeRevert
- tcmts.cli.commands.routeRun
- tcmts.cli.commands.routeSearch
- tcmts.cli.commands.routeServe
- tcmts.cli.commands.routeStart
- tcmts.cli.commands.routeSwitch
- tcmts.cli.commands.routeTcm
- tcmts.cli.commands.routeUpgrade
- tcmts.cli.commands.routeUser
- tcmts.cli.commands.routeView
- tcmts.cli.commands.tls