/
servlamo
/
cue
Обзор
Документация
Войти
/
servlamo
/
cue
Код
Запросы
0
Задачи
Вики
Пакеты
0
Релизы
0
Аналитика
Безопасность
master
pkg/tool/cli/pkg.go
58 строк
1 KB
Aram Hăvărneanu
internal/pkg: move pkg/internal to internal/pkg
17 май 2023, 12:19
17 май 2023, 12:19
88922d1
Код
Авторство
О чём код?
// Code generated by cuelang.org/go/pkg/gen. DO NOT EDIT. // Package cli provides tasks dealing with a console. // // These are the supported tasks: // // // Print sends text to the stdout of the current process. // Print: { // $id: *"tool/cli.Print" | "print" // for backwards compatibility // // // text is the text to be printed. // text: string // } // // // Ask prompts the current console with a message and waits for input. // // // // Example: // // task: ask: cli.Ask({ // // prompt: "Are you okay?" // // response: bool // // }) // Ask: { // $id: "tool/cli.Ask" // // // prompt sends this message to the output. // prompt: string // // // response holds the user's response. If it is a boolean expression it // // will interpret the answer using textual yes/ no. // response: string | bool // } package cli import ( "cuelang.org/go/internal/core/adt" "cuelang.org/go/internal/pkg" ) func init() { pkg.Register("tool/cli", p) } var _ = adt.TopKind // in case the adt package isn't used var p = &pkg.Package{ Native: []*pkg.Builtin{}, CUE: `{ Print: { $id: *"tool/cli.Print" | "print" text: string } Ask: { $id: "tool/cli.Ask" prompt: string response: string | bool } }`, }