-
Notifications
You must be signed in to change notification settings - Fork 0
feat: develop basic version of the request-cli injector #1
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Merged
Merged
Changes from all commits
Commits
Show all changes
8 commits
Select commit
Hold shift + click to select a range
a793e02
feat: develop basic version of the request-cli injector
aimensahnoun fa07f00
feat: add esm to commonjs converter
aimensahnoun 6b0d190
feat: add README
aimensahnoun 02df15f
refactor: update payRequest to support inMemoryRequest payment
aimensahnoun e678cc5
refactor: change cli name and bin name
aimensahnoun 3c5f8bb
chore: coderabbitai changes
aimensahnoun 20865f5
chore: remove ts-nocheck
aimensahnoun 64bf24f
chore: update npm version
aimensahnoun File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
This file contains hidden or 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,2 @@ | ||
| node_modules | ||
| dist |
This file contains hidden or 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,58 @@ | ||
| # Request Network Injector CLI | ||
|
|
||
| ## Problem | ||
|
|
||
| Integrating the Request Network Protocol into your application can be a complex and time-consuming process, especially for new developers. It requires understanding the protocol, setting up the necessary dependencies, and implementing various functions to interact with the network. | ||
|
|
||
| ## Solution | ||
|
|
||
| The Request Network Injector CLI simplifies this process by automatically injecting pre-built, customizable functions into your project. This tool allows both new and experienced builders to quickly integrate the Request Network Protocol into their applications with minimal setup. | ||
|
|
||
| ## Features | ||
|
|
||
| - Automatic injection of essential Request Network functions | ||
| - Support for both TypeScript and JavaScript projects | ||
| - Customizable function selection | ||
| - Automatic package installation | ||
| - Support for various package managers (npm, yarn, pnpm, bun) | ||
|
|
||
| ## How It Works | ||
|
|
||
| 1. The CLI analyzes your project structure | ||
| 2. You select the functions you want to inject | ||
| 3. You choose your preferred language (TypeScript or JavaScript) | ||
| 4. The tool injects the selected functions into your project | ||
| 5. Necessary dependencies are automatically installed | ||
|
|
||
| ## Usage | ||
|
|
||
| To use the Request Network Injector CLI, follow these steps: | ||
|
|
||
| 1. Navigate to your project directory | ||
| 2. Run the following command: | ||
|
|
||
| ```shell | ||
| npx request-cli | ||
| ``` | ||
|
|
||
| 3. Follow the prompts to select your desired functions and configurations | ||
| 4. The CLI will inject the code and install necessary dependencies | ||
|
|
||
| ## Available Functions | ||
|
|
||
| - `prepareRequest`: Prepare the input needed to create a request | ||
| - `createRequest`: Create a new request | ||
| - `payRequest`: Pay an existing request | ||
| - `persistInMemoryRequest`: Persist in-memory requests | ||
| - `getRequestByID`: Get request data by request ID | ||
| - `getRequestsByWalletAddress`: Get requests data that belong to a wallet address | ||
|
|
||
| ## Benefits | ||
|
|
||
| - Rapid integration of Request Network Protocol | ||
| - Reduced development time and complexity | ||
| - Customizable to fit your project needs | ||
| - Automatic setup of dependencies | ||
| - Supports multiple project configurations | ||
|
|
||
| Start building with the Request Network Protocol quickly and efficiently using the Request Network Injector CLI! | ||
Oops, something went wrong.
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Uh oh!
There was an error while loading. Please reload this page.