-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #2 from ioncakephper:chore/create-cli-app
Chore/create-cli-app
- Loading branch information
Showing
8 changed files
with
57 additions
and
21 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,3 +1,8 @@ | ||
# Changelog | ||
|
||
*Changelog created using the [Simple Changelog](https://marketplace.visualstudio.com/items?itemName=tobiaswaelde.vscode-simple-changelog) extension for VS Code.* | ||
|
||
## [1.0.0] - 2024-12-16 | ||
### Added | ||
- Add instags in bin property | ||
- Added cli.js in bin folder |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,26 @@ | ||
#!/usr/bin/env node | ||
|
||
const { Command } = require('commander'); | ||
const { processAndSaveFileWithTags } = require('../src/source-processor'); | ||
const packageJson = require('../package.json'); | ||
const path = require('path'); | ||
|
||
const program = new Command(); | ||
|
||
program | ||
.name(packageJson.name) | ||
.version(packageJson.version) | ||
.description(packageJson.description) | ||
.argument('<filename>', 'file to process for insert tags') | ||
.option('-o, --output <output>', 'output filename', '') | ||
.action((filename, options) => { | ||
const outputFilename = options.output || filename; | ||
processAndSaveFileWithTags(filename, outputFilename); | ||
}); | ||
|
||
program.parse(process.argv); | ||
|
||
if (!program.args.length) { | ||
program.help(); | ||
} | ||
|
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file was deleted.
Oops, something went wrong.
This file was deleted.
Oops, something went wrong.