1.4.0-prerelease • Published 11 months ago

devitzer-general-cli v1.4.0-prerelease

Weekly downloads
-
License
ISC
Repository
-
Last release
11 months ago

dvcli

The highly customizable CLI! So, what makes this CLI different from any other CLI? Well of course this CLI helps me and potentially you with using other packages I have made. This CLI has plugins.

What are plugins?

Once you install the CLI, it features a folder called "Plugins", and in here is an example of a plugin called MyPlugin. And if you go into bin/index.js you'll find inside the pre() function a line that says dvcli_plugin.LoadPlugin("MyPlugin"), and if you check the MyPlugin folder, the system should be self explanatory. Meaning with this CLI, you make plugins that can make the CLI behave in any way!

How do I make plugins?

Scroll to the bottom, we're going to cover commands first.

Prerequisites

dvcli was tested on node v0.10.48, v0.12.18, v4.9.1, v5.12.0, v6.17.1, v7.10.1, v8.17.0, v9.11.2, v10.24.1, v11.15.0, v12.0.0, v12.22.12, v18.16.0, and v20.2.0. The earliest working version was on v12.0.0, will it work on something like the latest 11 major version? The answer is actually no, one of the packages on dvcli, yargs-parser requires Node 12, and I found out that everything else works from there. I will now be testing from Node v12.0.0 to Node v20.2.0 unless I get rid of yargs-parser.

Commands

This CLI is not finished, so it has very few commands. If you see ~, it means this doesn't work properly yet.

dvcli: Gives information on each command!~ Example: dvcli

dvcli debug <debug>: Tests many different packages I use during development. debug arg: One arguement called --debug, needs to be a string. Example: dvcli debug --debug="hello world!"

dvcli metadata: Asks a series of questions to generate a metadata.json for your plugin.