Releases: mazeyqian/go-gin-gee
v1.4.0
Basic Usage
The following examples use MacOS as an example, please replace the corresponding files for other systems.
Example 1: Specify files file1.js
and file2.js
with the default configuration.
#!/bin/bash
./eslint-files-mac-darwin-amd64 -files="file1.js,file2.js"
Example 2: Specify folders src/views
and src/components
.
#!/bin/bash
./eslint-files-mac-darwin-amd64 -folders="/root/app/src/views,/root/app/src/components"
Complex Scenarios
- Specify ESLint configuration file
custom.eslintrc.js
; - Specify accompanying command
--fix
; - Specify files and folders;
- Specify file suffix;
- Add prefix and postfix execution commands.
#!/bin/bash
./eslint-files-mac-darwin-amd64 \
-files="file1.js,file2.js" \
-folders="src/views,src/components" \
-root="/root/app/" \
-esConf="custom.eslintrc.js" \
-esCom="--fix" \
-ext=".js,.ts,.jsx,.vue,.tsx" \
-befCom="echo 'Starting format';" \
-aftCom="echo 'Format completed';"
Parameter Description
Parameter | Description | Default | Example | Required |
---|---|---|---|---|
files |
Specify files, multiple files are separated by , . |
- | file1.js,file2.js |
Optional |
folders |
Specify folders, multiple folders are separated by , . |
- | src/views,src/components |
Optional |
esConf |
Specify ESLint configuration file. | - | custom.eslintrc.js |
Optional |
esCom |
Specify accompanying command. | - | --fix |
Optional |
root |
Specify root directory, used with folders . |
- | /root/app/ |
Optional |
ext |
Specify file suffix. | .js |
.js,.ts,.jsx,.vue |
Optional |
befCom |
Specify prefix execution command. | - | echo 'Starting format'; |
Optional |
aftCom |
Specify postfix execution command. | - | echo 'Format completed'; |
Optional |
filesRang |
Specify the range of files, count the processed and unprocessed files. | - | /root/app/ |
Optional |
v1.3.0
Convert Markdown to TypeDoc Comments
Instructions:
- Download the appropriate file for your operating system:
convert-markdown-to-typedoc-mac-darwin-amd64
/... - Create a new folder named
data
in the same directory as the downloaded file. - Create a new file named
md2td.md
inside thedata
folder. - Copy and paste the Markdown content that you want to convert into the
md2td.md
file. - Run the downloaded file
convert-markdown-to-typedoc-mac-darwin-amd64
/... - View the converted TypeDoc comments in the file
data/md2td.js
.
Note: The downloaded file is used to convert Markdown content to TypeDoc comments format. The converted output will be saved in the data/md2td.js
file.
v1.2.0
Convert TypeDoc Comments to Markdown
Instructions:
- Download the appropriate file for your operating system:
convert-typedoc-to-markdown-mac-darwin-amd64
/... - Create a new folder named
data
in the same directory as the downloaded file. - Create a new file named
td2md.js
inside thedata
folder. - Copy and paste the TypeDoc comments that you want to convert into the
td2md.js
file. - Run the downloaded file
convert-typedoc-to-markdown-mac-darwin-amd64
/... - View the converted Markdown output in the file
data/td2md.md
.
Note: The downloaded file is used to convert TypeDoc comments to Markdown format. The converted output will be saved in the data/td2md.md
file.
v1.1.0
Example 1: MacOS batch-git-pull.sh
#!/bin/bash
./batch-git-pull-mac-darwin-amd64-v2 -path="/Users/X/Web"
Output:
2023/01/24 23:01:36 Git pull...
2023/01/24 23:01:36 projectPath: /Users/X/Web
2023/01/24 23:01:36 assignedProjects: .
2023/01/24 23:01:42 result: - - begin - -
...
...
- - end - - - - - - - - - - - - - - - - -
Example 2: Linux batch-git-pull.sh
#!/bin/bash
chmod u+x ./batch-git-pull-linux-amd64-v2
./batch-git-pull-linux-amd64-v2 -path="/Users/X/Web" -projects="go-gin-gee|mazey"
Output:
2023/01/24 23:12:02 Git pull...
2023/01/24 23:12:02 projectPath: /Users/X/Web
2023/01/24 23:12:02 assignedProjects: go-gin-gee|mazey
2023/01/24 23:12:06 result: - - begin - -
...
...
- - end - - - - - - - - - - - - - - - - -
Example 3: Windows CMD
batch-git-pull-windows-amd64-v3.exe -path="C:\Web"
v1.0.0
Change Git name and email for different projects.
Example 1: MacOS change-git-user.sh
#!/bin/bash
./change-git-user-mac-darwin-amd64 -path="/Users/X/Web" -username="Your Name" -useremail="your@email.com"
Example 2: Linux change-git-user.sh
#!/bin/bash
chmod u+x ./change-git-user-linux-amd64
./change-git-user-linux-amd64 -path="/Users/X/Web" -username="Your Name" -useremail="your@email.com"
Example 3: Windows CMD
change-git-user-windows-amd64-v5.exe -path="C:\Web" -username="YourName" -useremail="your@email.com"