Code Monkey home page Code Monkey logo

run-fig's Issues

Decide on a name for the library

"Run Fig" is a placeholder. I intentionally phrased the readme/description to never mention the library's name, partly because:

  • It doesn't have one yet
  • It helps slow growth until it's ready to be used more widely

Deciding on a name is tricky. This isn't an official Fig thing. I do work for Fig, so it could become official (or officially endorsed as a community project), but I don't want to name-squat or do anything out of line.

Make it faster

There's a lot of unnecessary slowdown in the analysis stage

Add `Fig.completion` subcommand

This was implemented before release as a proof-of-concept but was cut to due code quality. Will be reimplemented.

Add in one extra line to your subcommands (Fig.completion), then run <cli> completion fig --upload to instantly get powerful completions. Will also support running custom generators on the CLI itself to reuse app logic.

Add benchmarks

I've been using benchmarks to test the library the whole time while developing it, but I removed before release. Will re-add with a larger suite.

Rethink `testing`

Maybe should be renamed to lints, and more generic (not so tied to Deno, maybe with a Deno adapter)

Type safety

You can use options.get("not an option") and TS won't tell you there's a mistake, because actions currently cannot know their options or args statically.

Blocked on parser generator. Can generate types too.

Explain the vision and motivation for the library

The readme explains what the library is and why you should use it, but not why it exists or where it's going. This is critical for contributors -- including myself -- to make it clear what does and doesn't align with project goals

Will put some examples of great OSS/lib vision statements in replies

Argument and option data types

Blocked on parser generator. Most CLIs only need strings but some have other requirements such as numbers, booleans, files, and enums.

Add description dedenting for help

Descriptions aren't "dedented" (un-indented) at the moment. There's a proposed String.dedent function, could implement this in the help system.

This would not apply actively, only when formatting the description for help.

Reimplement help logic

Currently very messy. Critical feature, so did not get cut, but I didn't want to refactor it before launch because it works.

Will spec out behavior too.

Host on NPM

Currently this isn't even on deno.land/x but an eventual goal is to host on NPM to use with Bun and Node.

Parser generator

Fig specs are essentially a grammar definition as JSON. The parser isn't optimal for every CLI because it has to be general enough to run them all, but a parser generator can create the optimal parser for each CLI.

I want this to be seamless. It should feel like no effort at all to set it up for your project. Not sure exactly how this will look right now

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.