(value: Option.Option<Value>)
| 21 | type PluginAuth = NonNullable<Hooks["auth"]> |
| 22 | |
| 23 | const promptValue = <Value>(value: Option.Option<Value>) => { |
| 24 | if (Option.isNone(value)) return Effect.die(new UI.CancelledError()) |
| 25 | return Effect.succeed(value.value) |
| 26 | } |
| 27 | |
| 28 | const put = Effect.fn("Cli.providers.put")(function* (key: string, info: Auth.Info) { |
| 29 | const auth = yield* Auth.Service |