An open API service providing repository metadata for many open source software ecosystems.

Package Usage: go: github.com/confluentinc/go-editor

Package editor allows your CLI users to edit arbitrary data in their preferred editor. It's just like editing messages in "git commit" or resources with "kubectl edit". The most basic usage is to prompt the user to edit an existing file. This may be useful to edit the application configuration or a system file, for example. Most of the time, the data you want your user to edit isn't in an local file. In these cases, if you can represent your data in a human editable format (txt, yaml, hcl, json, etc), then go-editor will enable the user to edit it. Provide any "io.Reader" with the initial contents: The library leaves it up to you to cleanup the temp file. This enables your CLI to validate the edited data and prompt the user to continue editing where they left off, rather than starting over. And if that's what you want... If you would like to validate the edited data, use a ValidatingEditor instead. This will prompt the user to continue editing until validation succeeds or the edit is cancelled. Simply create a schema and pass it to the editor: A schema must implement the Schema interface: https://godoc.org/github.com/confluentinc/go-editor#Schema
11 versions
Latest release: over 2 years ago
1 dependent package

View more package details: https://packages.ecosyste.ms/registries/proxy.golang.org/packages/github.com/confluentinc/go-editor

View more repository details: http://repos.ecosyste.ms/hosts/GitHub/repositories/confluentinc%2Fgo-editor

Dependent Repos 1

confluentinc/cli
CLI for Confluent Cloud and Confluent Platform

Size: 163 MB - Last synced: 8 days ago - Pushed: 8 days ago

P0l0Marko/cli Fork of confluentinc/cli
CLI for Confluent Cloud and Confluent Platform

Size: 90.3 MB - Last synced: over 1 year ago - Pushed: over 1 year ago

lcampit/ThoughtSync
A CLI tool to manage notes at the speed of thought

Size: 229 KB - Last synced: 2 days ago - Pushed: 2 days ago