-
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.
- Loading branch information
Showing
4 changed files
with
35 additions
and
5 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
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -5,3 +5,4 @@ package-lock.json | |
src/index copy.ts | ||
*.py | ||
static/* | ||
b2p.exe |
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,29 @@ | ||
# b2p: Linux Bash to PowerShell Translator | ||
With our advanced natural language understanding capabilities, we have designed a console tool that translates Linux commands into PowerShell commands. | ||
This tool will make your experience with PowerShell more seamless, especially if you are already familiar with Linux and find the PowerShell commands challenging to recall. | ||
|
||
## Download | ||
Download the app from the release page and copy b2p.exe into the Windows folder in the system drive. | ||
|
||
## Configure API Key | ||
To obtain the API key, visit the OpenAI official website. Then, set the API key in a JSON file named ".config" located in the user path. | ||
|
||
## Usage: | ||
Use the repository as follows: | ||
|
||
```b2p ls *.jpg``` | ||
|
||
You can also wrap the command with if there are characters in the command that need to be escaped. For example, characters like '|' need to be escaped, like so: | ||
|
||
```b2p 'ls *.jpg | wc'``` | ||
|
||
## Development | ||
#### package | ||
```npx webpack``` | ||
#### release | ||
```pkg dist/b2p.js --target node18-win-x64``` | ||
|
||
## Future plans | ||
1. To change the configuration item to be input by natural language and parsed and executed by GPT. | ||
2. Add proxy support if required. | ||
3. Optimize the packaging issue. |
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