Skip to content

Commit

Permalink
Merge pull request #10 from laxmanpokhrel/feat/workflow-setup
Browse files Browse the repository at this point in the history
Wait for flags to complete
  • Loading branch information
laxmanpokhrel authored Feb 25, 2024
2 parents ed72842 + 4197ab0 commit 36c9037
Show file tree
Hide file tree
Showing 4 changed files with 29 additions and 11 deletions.
6 changes: 4 additions & 2 deletions .release/release-notes.md
Original file line number Diff line number Diff line change
@@ -1,3 +1,5 @@
## Fixes
- Wait for flags task to complete before exit

## Changes
- Update the action registry to handle error
- Able to listen to action and release flags
- Updated documentation
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@
},
"exports": "./dist/index.js",
"bin": {
"xmanscript": "dist/index.js"
"xmanscript-test": "dist/index.js"
},
"repository": {
"type": "git",
Expand Down
28 changes: 22 additions & 6 deletions readme.md
Original file line number Diff line number Diff line change
@@ -1,10 +1,26 @@
## xmanscript-cli-beta
#### for `xmanscript` tools
# xmanscript-cli-beta

## Description
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.

## Usage

### Installation
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:

Run:
```bash
npx xmanscript
npx xmanscript
```
and follow the prompts.
### Command-Line Interface
After running the command above, follow the prompts to perform various tasks related to managing your JavaScript projects.
### Help
To see the available flags and options, you can use the --help flag:
```bash
npx xmanscript --help
```

## Motivation
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.

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.

Happy coding 🚀.
4 changes: 2 additions & 2 deletions src/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -21,10 +21,10 @@ async function main() {
showAvailableFlags();
process.exit(0);
} else if (flags["create-release-data"]) {
createRelease();
await createRelease();
process.exit(0);
} else if (flags["create-release-action"]) {
createReleaseWorkflow();
await createReleaseWorkflow();
process.exit(0);
} else {
console.error("Flag not available.");
Expand Down

0 comments on commit 36c9037

Please sign in to comment.