Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

feat(eask): Use strict option #256

Merged
merged 10 commits into from
Jun 14, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
1 change: 1 addition & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -27,6 +27,7 @@ Check [Keep a Changelog](http://keepachangelog.com/) for recommendations on how
* feat(generate/test): Add commands to setup test files (#243)
* feat: Add `docs` command (#245)
* feat(cmds): Add `recompile` command (#254)
* feat(eask): Use `strict` option (#256)

## 0.9.x
> Released Nov 17, 2023
Expand Down
1 change: 1 addition & 0 deletions cmds/core/docker.js
Original file line number Diff line number Diff line change
Expand Up @@ -26,6 +26,7 @@ exports.builder = async (yargs) => {
yargs.help(false);
yargs.version(false);
yargs.getOptions().narg = [];
yargs.strict(false);
yargs.positional('<version>', {
description: 'Emacs version to test',
type: 'string',
Expand Down
1 change: 1 addition & 0 deletions cmds/core/emacs.js
Original file line number Diff line number Diff line change
Expand Up @@ -28,6 +28,7 @@ exports.builder = async (yargs) => {
yargs.help(false);
yargs.version(false);
yargs.getOptions().narg = [];
yargs.strict(false);
};

exports.handler = async (argv) => {
Expand Down
2 changes: 1 addition & 1 deletion cmds/core/exec.js
Original file line number Diff line number Diff line change
Expand Up @@ -26,7 +26,7 @@ exports.builder = async (yargs) => {
yargs.help(false);
yargs.version(false);
yargs.getOptions().narg = [];
//console.warn(yargs.getOptions());
yargs.strict(false);
};

exports.handler = async (argv) => {
Expand Down
9 changes: 9 additions & 0 deletions cmds/core/outdated.js
Original file line number Diff line number Diff line change
Expand Up @@ -19,6 +19,15 @@

exports.command = ['outdated'];
exports.desc = 'Show all outdated dependencies';
exports.builder = yargs => yargs
.options({
'depth': {
description: 'dependency depth level to print',
requiresArg: true,
type: 'number',
group: TITLE_CMD_OPTION,
},
});

exports.handler = async (argv) => {
await UTIL.e_call(argv, 'core/outdated');
Expand Down
51 changes: 26 additions & 25 deletions docs/content/Getting-Started/Basic-Usage/_index.en.md
Original file line number Diff line number Diff line change
Expand Up @@ -33,22 +33,22 @@ Usage: eask <command> [options..]

Commands:
analyze [files..] Run Eask checker
archives List out all package archives [aliases: sources]
archives List out all package archives [aliases: sources]
clean <type> Delete various files produced during building
compile [names..] Byte-compile `.el' files
create <type> Create a new elisp project
docker <version> [args..] Launch specified Emacs version in a Docker container
docs [names..] Build documentation [aliases: doc]
docs [names..] Build documentation [aliases: doc]
emacs [args..] Execute emacs with the appropriate environment
eval [form] Evaluate lisp form with a proper PATH
path [patterns..] Print the PATH (exec-path) from workspace [aliases: exec-path]
path [patterns..] Print the PATH (exec-path) from workspace [aliases: exec-path]
exec [args..] Execute command with correct environment PATH set up
files [patterns..] Print all package files
format <type> Run formatters [aliases: fmt]
format <type> Run formatters [aliases: fmt]
generate <type> Generate files that are used for the development
info Display information about the current package
init [files..] Initialize project to use Eask
install-deps Automatically install package dependencies [aliases: install-dependencies, prepare]
install-deps Automatically install package dependencies [aliases: install-dependencies, prepare]
install [names..] Install packages
keywords List available keywords that can be used in the header section
link <action> Manage links
Expand All @@ -58,7 +58,7 @@ Commands:
load [files..] Load elisp files
outdated Show all outdated dependencies
package-directory Print path to package directory
package [destination] Build a package artifact, and put it into the given destination [aliases: pack]
package [destination] Build a package artifact, and put it into the given destination [aliases: pack]
recipe Suggest a recipe format
recompile [names..] Byte-recompile `.el' files
refresh Download package archives
Expand All @@ -67,31 +67,32 @@ Commands:
search [queries..] Search packages
status Display the state of the workspace
test <type> Run regression/unit tests
uninstall [names..] Uninstall packages [aliases: delete]
uninstall [names..] Uninstall packages [aliases: delete]
upgrade [names..] Upgrade packages
locate Print out Eask installed location
upgrade-eask Upgrade Eask itself [aliases: upgrade-self]
upgrade-eask Upgrade Eask itself [aliases: upgrade-self]

Proxy Options:
--proxy update proxy for HTTP and HTTPS to host [string]
--http-proxy update proxy for HTTP to host [string]
--https-proxy update proxy for HTTPS to host [string]
--no-proxy set no-proxy to host [string]
--proxy update proxy for HTTP and HTTPS to host [string]
--http-proxy update proxy for HTTP to host [string]
--https-proxy update proxy for HTTPS to host [string]
--no-proxy set no-proxy to host [string]

Options:
--version output version information and exit [boolean]
--help show usage instructions [boolean]
--show-hidden Show hidden commands and options [boolean]
-g, --global change default workspace to ~/.eask/ [boolean]
-c, --config change default workspace to ~/.emacs.d/ [boolean]
-a, --all enable all flag [boolean]
-q, --quick start cleanly without loading the configuration files [boolean]
-f, --force enable force flag [boolean]
--debug turn on debug mode [boolean]
--strict report error instead of warnings [boolean]
--allow-error continue the executioon even there is error reported [boolean]
--insecure allow insecure connection [boolean]
-v, --verbose set verbosity from 0 to 5 [number]
--version output version information and exit [boolean]
--help show usage instructions [boolean]
--show-hidden Show hidden commands and options [boolean]
-g, --global change default workspace to ~/.eask/ [boolean]
-c, --config change default workspace to ~/.emacs.d/ [boolean]
-a, --all enable all flag [boolean]
-q, --quick start cleanly without loading the configuration files [boolean]
-f, --force enable force flag [boolean]
--debug turn on debug mode [boolean]
--strict report error instead of warnings [boolean]
--allow-error continue the executioon even there is error reported [boolean]
--insecure allow insecure connection [boolean]
--color enable/disable color output with `--no-` prefix [boolean]
-v, --verbose set verbosity from 0 to 5 [number]

For more information, find the manual at https://emacs-eask.github.io/
```
Expand Down
Loading
Loading