This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
import { t } from 'elysia'; | |
type Simplify<T> = { | |
[K in keyof T]: T[K] extends object ? Simplify<T[K]> : T[K]; | |
} & {}; | |
type UnwrapSchemaType<T extends ReturnType<typeof t.Object>> = Simplify< | |
T['static'] | |
>; |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
import { Cli, Command, Validator, OptionFactory } from "mustard-cli"; | |
import { RegisterCommand, Option, Options, Input } from "mustard-cli/decorators"; | |
import { PackageManager } from "mustard-cli/types"; | |
const cli = Cli(); | |
interface ICoreOptions { | |
name: string; | |
sayHi: boolean; | |
} |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
import { Cli, Command } from 'mustard-cli'; | |
import { Register, Context, Options } from 'mustard-cli/decorators' | |
import { PackageManager } from 'mustard-cli/types' | |
const cli = Cli(); | |
interface ICoreOptions { | |
name: string; | |
sayHi: boolean; | |
} |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
import { Cli, Command } from 'mustard-cli'; | |
import { Register, Context, Options } from 'mustard-cli/decorators' | |
import { PackageManager } from 'mustard-cli/types' | |
const cli = Cli(); | |
interface ICoreOptions { | |
name: string; | |
sayHi: boolean; | |
} |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
- 不要标榜自己的能力 | |
- 不要寻找借口 | |
- 不要忘记为何出发 |
