Giter Club home page Giter Club logo

Comments (4)

rkervella avatar rkervella commented on July 18, 2024

We plan on making a repo with bootstrap template for extensions in different languages, but that's not done yet. So far there's no official documentation afaik, only community created ones like this one.

from sliver.

Arks7 avatar Arks7 commented on July 18, 2024

When is the bootstrap template expected to be available, thank you at the same time

from sliver.

rkervella avatar rkervella commented on July 18, 2024

No ETA.

from sliver.

maxlandon avatar maxlandon commented on July 18, 2024

@moloch-- @rkervella

Here is one stone to kill n birds:

https://github.com/rsteube/carapace-spec

Use this as the schema for the command syntax of extensions (don't get me wrong: just for the command field of the extension spec).

As well, include the now widely used directive$shema path/to/yaml/json/schema into the extensions template root file.

Advantages:

  • The spec above is meant to be consistently parsed into cobra command trees, for any shell. Since everything in Sliver is now a cobra command, using this spec ensures that everything will be parsed correctly.
  • You can declare commands, flags and positionals with all possible specs and variants.
  • you end up having not only a command syntax spec for your extensions, but you also get free completion for them, at arbitrary levels of complexity.
  • Totally opt-in: people don't even have to know that this is a completer spec, since it's first and foremost a command tree declaration spec.
  • Including the s$shema directive in the extension file provides validation, documentation and completion within editors with support for it.

Disadvantages for now:

from sliver.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.