Comparing version 0.0.4 to 0.0.5
#!/usr/bin/env node | ||
// Imports | ||
import args from 'args'; | ||
args.command('hello', 'say hello', () => { | ||
console.log('Hello'); | ||
// Project-Imports | ||
import versionCommand from './commands/version.js'; | ||
import helpCommand from './commands/help.js'; | ||
// Code | ||
// Commands | ||
args.command('version', 'Prints the current version', versionCommand, ['v']) | ||
.command('help', 'Displays help information', helpCommand) | ||
// Options | ||
.option(['H', 'help'], 'Outputs usage info about the correct and successful usage of the spiky-cli', undefined, helpCommand) | ||
// Examples | ||
.example('The current version is: vX.X.X', 'spiky version'); | ||
const flags = args.parse(process.argv, { | ||
help: false, | ||
version: false, | ||
name: 'spiky', | ||
mainColor: 'yellowBright', | ||
subColor: 'grey', | ||
mri: {} | ||
}); |
{ | ||
"name": "spiky-cli", | ||
"description": "This is the spiky-cli package. A package that can convert spiky.js code into Python code with can be run on the SPIKE Prime Robot.", | ||
"version": "0.0.4", | ||
"version": "0.0.5", | ||
"license": "MIT", | ||
@@ -36,2 +36,6 @@ "type": "module", | ||
}, | ||
"funding": { | ||
"type": "individual", | ||
"url": "https://buymeacoffee.com/leontm" | ||
}, | ||
"homepage": "https://github.com/leontm-dev/spiky-cli#readme", | ||
@@ -38,0 +42,0 @@ "dependencies": { |
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
Trivial Package
Supply chain riskPackages less than 10 lines of code are easily copied into your own project and may not warrant the additional supply chain risk of an external dependency.
Found 1 instance in 1 package
1918
22
0