Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/rximg/b2p
Linux Bash to PowerShell Translator
https://github.com/rximg/b2p
Last synced: about 1 month ago
JSON representation
Linux Bash to PowerShell Translator
- Host: GitHub
- URL: https://github.com/rximg/b2p
- Owner: rximg
- Created: 2023-02-06T13:04:55.000Z (almost 2 years ago)
- Default Branch: main
- Last Pushed: 2023-02-06T13:48:59.000Z (almost 2 years ago)
- Last Synced: 2024-08-01T22:41:43.983Z (4 months ago)
- Language: TypeScript
- Size: 21.5 KB
- Stars: 2
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
- awesome-chatgpt - b2p - a linux bash to PowerShell translator using ChatGPT
README
# 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](https://github.com/rximg/b2p/releases/download/0.0.1/b2p.exe) 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 located in %USERPROFILE%\\.psgpt.```{"apiKey":"your api key"}```
## 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'```
![Usage Example](doc/usage.png)
## 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.