From 804050f6a5b7df0a57825fc1ad711b37e6593b69 Mon Sep 17 00:00:00 2001 From: Arthur Fiorette Date: Wed, 29 May 2024 00:37:20 -0300 Subject: [PATCH] feat: colored output when printint to stdout in TTY mode --- README.md | 12 +++++++----- bin/tjsg.js | 9 ++++----- commands/generate.ts | 35 ++++++++++++++++++++++------------- oclif.manifest.json | 13 +++++++++++-- package.json | 3 ++- src/Error/Errors.ts | 2 +- tsconfig.json | 2 +- 7 files changed, 48 insertions(+), 28 deletions(-) diff --git a/README.md b/README.md index 438ea8950..d7bd88c75 100644 --- a/README.md +++ b/README.md @@ -66,7 +66,7 @@ $ TSJG_DEV=1 node_modules/.bin/tsjg -t 'My.Type.Name' 'my/project/**/*.ts' - [`tjsg autocomplete [SHELL]`](#tjsg-autocomplete-shell) -- [`tjsg generate [PATH]`](#tjsg-generate-path) +- [`tjsg generate PATH`](#tjsg-generate-path) - [`tjsg help [COMMAND]`](#tjsg-help-command) ## `tjsg autocomplete [SHELL]` @@ -100,19 +100,19 @@ EXAMPLES _See code: [@oclif/plugin-autocomplete](https://github.com/oclif/plugin-autocomplete/blob/v3.0.18/src/commands/autocomplete/index.ts)_ -## `tjsg generate [PATH]` +## `tjsg generate PATH` Generate JSON schema from your Typescript sources ``` USAGE - $ tjsg generate [PATH] [-t ] [--top-ref] [-i ] [-p ] [-e all|none|export] [-j + $ tjsg generate PATH [-t ] [--top-ref] [-i ] [-p ] [-e all|none|export] [-j none|basic|extended] [--markdown-description] [--sort-props] [--strict-tuples] [--type-check] [--ref-encode] - [--additional-properties] [--functions fail|comment|hide] [--minify] [-o ] [--extra-tags ] + [--additional-properties] [--functions fail|comment|hide] [--minify | --color] [-o ] [--extra-tags ] [--discriminator-type json-schema|open-api] ARGUMENTS - PATH Source file path + PATH Source root filepath FLAGS -e, --expose=