Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

github.com/withfig/autocomplete-tools

Package Overview
Dependencies
Alerts
File Explorer
Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

github.com/withfig/autocomplete-tools

  • v1.1.6
  • Source
  • Go
  • Socket score

Version published
Created
Source

Fig Autocomplete-Tooling Repo

This repo contains the source for all of Fig tools related with autocomplete.

  1. You can see the list of Fig's packages on the NPM registry here: https://www.npmjs.com/~withfig

  2. You can see the source code and related README for each package in the ./packages folder

Packages

To publish a package:

Run yarn workspace <workspace name> publish

e.g.

yarn workspace @withfig/autocomplete-types publish

Note: <workspace name> is not the name of the folder, but the name specified inside the package.json of the package to publish.

Conventions for new CLI integration

Package (integration) name

  • If namespaced it SHOULD be @fig/complete[-_]($FRAMEWORK_NAME)
  • If not namespaced it SHOULD be ($FRAMEWORK_NAME)[-_]complete[-_]fig

According to language conventions you can use a dash or an underscore to separate the words.

Examples:

  • @fig/complete-commander
  • @fig/complete-oclif
  • clap_complete_fig

Name of the default subcommand added to the CLI

Most of our CLI integration tools allow to set the name of the subcommand added to the CLI but we also provide a default value for that. That default name MUST be generate-fig-spec such that running $CLI generate-fig-spec prints the spec.

Function that adds the command

The functions exported from the integration can:

  • Create a new framework subcommand which will print the spec when invoked
  • Generate a spec and return it

In all the cases the names are standardized and SHOULD be:

  • addCompletionSpecCommand or createCompletionSpecCommand for functions creating a new subcommand
  • generateCompletionSpec for functions that return the spec as a string

According to language conventions these function names can be transformed to snake case, etc...

Docs on public-site-nextjs

Docs MUST conform to the rules listed above too.

FAQs

Package last updated on 13 May 2022

Did you know?

Socket

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Install

Related posts

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc