MCPcopy Create free account
hub / github.com/effect-app/libs / handleFileClear

Function handleFileClear

repos/effect/packages/effect/src/unstable/cli/Prompt.ts:2176–2202  ·  view source on GitHub ↗
(options: FileOptionsReq)

Source from the content-addressed store, hash-verified

2174 ? year.slice(-2)
2175 : year
2176 }
2177}
2178
2179class Meridiem extends DatePart {
2180 increment(): void {
2181 this.date.setHours((this.date.getHours() + 12) % 24)
2182 }
2183
2184 decrement(): void {
2185 this.increment()
2186 }
2187
2188 setValue(_value: string): void {}
2189
2190 override toString() {
2191 const meridiem = this.date.getHours() >= 12 ? "pm" : "am"
2192 return /A/.test(this.token)
2193 ? meridiem.toUpperCase()
2194 : meridiem
2195 }
2196}
2197
2198interface FileOptionsReq extends OptionsReq<Omit<FileOptions, "startingPath" | "default">> {
2199 readonly startingPath: Option.Option<string>
2200 readonly default: Option.Option<string>
2201}
2202
2203interface FileState {
2204 readonly cursor: number
2205 readonly files: ReadonlyArray<string>

Callers 1

fileFunction · 0.85

Calls 5

resolveCurrentPathFunction · 0.85
renderPromptFunction · 0.85
renderFileFilterFunction · 0.85
renderFilesFunction · 0.85
eraseTextFunction · 0.85

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…