A delightful toolkit for building TypeScript-powered command-line apps.
MIT License
Bot releases are hidden (Show)
Published by infinitered-circleci almost 6 years ago
Published by infinitered-circleci almost 6 years ago
gluegun new
. (introduced in #419). (2e5bb66357b0b9cd3a87d82c578275a2b3856c26)Published by infinitered-circleci almost 6 years ago
Published by jamonholmgren almost 6 years ago
⭐️ Version 2.0.0 is now released! ⭐️
Read the blog post to learn more:
Published by jamonholmgren over 6 years ago
This version fixes an issue where commands & parameters with the same name would get collapsed accidentally. It also bumps all dependencies. It should be backwards-compatible.
Published by jamonholmgren over 6 years ago
So, that gluegun/toolbox
thing that was introduced in Beta 7?
Yeah, that didn't last long.
You now import directly from Gluegun (again) (examples in TypeScript):
import { print, prompt, filesystem } from 'gluegun/toolbox'
// change to
import { print, prompt, filesystem } from 'gluegun'
You can also import specific ones, now:
import { print } from 'gluegun/print'
☝️ Adds direct access to tools from Gluegun #379 by @jamonholmgren
🤡 Converts from Ava to Jest tests #377 by @jamonholmgren
🥌 Removes gluegun/toolbox, refactors core extension loading #376 by @jamonholmgren
docs(help): Fix help override example #375 by @cmckni3
🎛 Switches ToolboxParameters to GluegunParameters #373 by @jamonholmgren
Published by jamonholmgren over 6 years ago
This new Beta version contains a lot of changes!
The primary change is that you will now need to access core extension tools from gluegun/toolbox
instead of gluegun
directly. build
is still at gluegun
and the types are available from either endpoint.
import { print, prompt, filesystem } from 'gluegun'
// change to
import { print, prompt, filesystem } from 'gluegun/toolbox'
We've also added a new function to filesystem
called homedir
. This comes from os.homedir
and returns the home directory path for the host OS.
The Builder
will now accept options in any order. Prior to this release, you had to make sure you configured your runtime in the proper order. Now, it doesn't matter. One exception is brand
, which should either come right after build like this: build().brand('mycli')
or be passed into build like this: build('mycli')
.
There is a new Builder method called exclude
. You can use this to exclude unneeded core extensions from being added to the GluegunToolbox, which will improve startup time.
Speaking of GluegunToolbox
, GluegunRunContext
is now renamed to GluegunToolbox
. The old name will continue to work for the foreseeable future as an alias.
You can now use export default
instead of module.exports =
for commands and extensions if you are using TypeScript. If you are using JavaScript, you need to continue to use module.exports =
.
We're getting close to releasing 2.0.0. No new changes are planned at this point. Please file issues with bugs!
export default
(if using TypeScript) - #343 by @jamonholmgrenPublished by GantMan almost 7 years ago
Published by GantMan almost 7 years ago
Published by jamonholmgren almost 7 years ago
.d.ts
files in the shipped NPM package.Published by jamonholmgren almost 7 years ago
🎉 Beta Release! 🎉
This beta release introduces the following features, updates, refactors, and improvements:
defaultCommand
, help
, and version
options for CLI runtime builderminimist
to yargs-parser
toml
with cosmiconfig
(breaking change for the few that might have used TOML in the past)Published by jamonholmgren almost 7 years ago
No other changes in this release. The next release will be 2.0.0-beta.1
as we move closer to release. 🎉
Published by jamonholmgren almost 7 years ago
Published by jamonholmgren almost 7 years ago