Skip to content

Commit 36c9037

Browse files
Merge pull request #10 from laxmanpokhrel/feat/workflow-setup
Wait for flags to complete
2 parents ed72842 + 4197ab0 commit 36c9037

File tree

4 files changed

+29
-11
lines changed

4 files changed

+29
-11
lines changed

.release/release-notes.md

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,5 @@
1+
## Fixes
2+
- Wait for flags task to complete before exit
3+
14
## Changes
2-
- Update the action registry to handle error
3-
- Able to listen to action and release flags
5+
- Updated documentation

package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,7 @@
1414
},
1515
"exports": "./dist/index.js",
1616
"bin": {
17-
"xmanscript": "dist/index.js"
17+
"xmanscript-test": "dist/index.js"
1818
},
1919
"repository": {
2020
"type": "git",

readme.md

Lines changed: 22 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -1,10 +1,26 @@
1-
## xmanscript-cli-beta
2-
#### for `xmanscript` tools
1+
# xmanscript-cli-beta
2+
3+
## Description
4+
The `xmanscript-cli` is a command-line interface (CLI) tool designed to streamline the development process for projects utilizing the `xmanscript` tools. It aims to reduce the overhead of copying and pasting boilerplates and configurations for frontend and backend applications built in JavaScript. Additionally, it facilitates the building and deployment of npm packages.
5+
6+
## Usage
7+
8+
### Installation
9+
To use `xmanscript-cli`, ensure you have Node.js installed on your system. You can then run the following command to utilize the tool without the need for global installation:
310

4-
Run:
511
```bash
6-
npx xmanscript
12+
npx xmanscript
713
```
8-
and follow the prompts.
14+
### Command-Line Interface
15+
After running the command above, follow the prompts to perform various tasks related to managing your JavaScript projects.
16+
### Help
17+
To see the available flags and options, you can use the --help flag:
18+
```bash
19+
npx xmanscript --help
20+
```
21+
22+
## Motivation
23+
The primary motivation behind the development of `xmanscript-cli` is to simplify and automate common tasks encountered during JavaScript project development. By abstracting away boilerplate code and configuration setup, developers can focus more on building features and less on repetitive setup tasks.
24+
25+
Whether you're starting a new frontend or backend application or packaging and deploying an npm package, `xmanscript-cli` aims to streamline the process, making development more efficient and enjoyable.
926

10-
Happy coding 🚀.

src/index.ts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -21,10 +21,10 @@ async function main() {
2121
showAvailableFlags();
2222
process.exit(0);
2323
} else if (flags["create-release-data"]) {
24-
createRelease();
24+
await createRelease();
2525
process.exit(0);
2626
} else if (flags["create-release-action"]) {
27-
createReleaseWorkflow();
27+
await createReleaseWorkflow();
2828
process.exit(0);
2929
} else {
3030
console.error("Flag not available.");

0 commit comments

Comments
 (0)