https://github.com/fel88/gandalf
https://github.com/fel88/gandalf
github-cli roslyn telegram-bot
Last synced: 4 months ago
JSON representation
- Host: GitHub
- URL: https://github.com/fel88/gandalf
- Owner: fel88
- License: mit
- Created: 2023-03-03T21:23:34.000Z (about 3 years ago)
- Default Branch: main
- Last Pushed: 2024-06-21T20:51:58.000Z (almost 2 years ago)
- Last Synced: 2025-04-07T20:13:10.227Z (about 1 year ago)
- Topics: github-cli, roslyn, telegram-bot
- Language: C#
- Homepage:
- Size: 54.7 KB
- Stars: 1
- Watchers: 1
- Forks: 1
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# Gandalf
Modify, build and create pull requests for your C# projects with Telegram Bot.
git-bash / github cli / cmd
QR code parser
Roslyn based parsing

For Linux:
```
bash git
bash gh
bash
```
Commands:
```
ls # show files/directories list
cd # change directory
cd..
build # build current directory solution with msbuild
git
gh
cmd
imgcat # get image
enter # enter file mode
exit # exit file mode
```
directory mode:
```
cat # display text file
patch \n # rewrite file
parse # get list of functions
```
file mode:
```
func [-nolines] # display specific function
cat
cat # display lines of file
patch \n # replace specific function code
parse # show functions list
parse # show functions list
insert \n #insert line
delete \n # delete line
replace \n # replace line
```
How to apply git patch remotely:
```
Host machine:
1. git add -A
2. git diff --staged -w > changes.patch
3. Zip changes.patch to archive
4. Open QR split (https://github.com/fel88/QRSplit) and make QR code
5. Photo QR code and send to gandalf telegram bot
Telegram bot:
6. Unzip file (bash 7z x )
7. apply changes to target repository: bash git apply --reject --ignore-space-change --ignore-whitespace changes.patch
8. remove changes.zip and changes.patch (bash rm changes.*)
9. bash git add .
10. bash git commit -m ''
11. bash git push
12. bash gh pr create --title '' --body ''
13. merge PR with main account
14. sync repo: bash gh repo sync /
15. bash git pull
```