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"
custom.eslintrc.js
;--fix
;#!/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 | 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 |
Published by mazeyqian over 1 year ago
Instructions:
convert-markdown-to-typedoc-mac-darwin-amd64
/...data
in the same directory as the downloaded file.md2td.md
inside the data
folder.md2td.md
file.convert-markdown-to-typedoc-mac-darwin-amd64
/...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.
Published by mazeyqian over 1 year ago
Instructions:
convert-typedoc-to-markdown-mac-darwin-amd64
/...data
in the same directory as the downloaded file.td2md.js
inside the data
folder.td2md.js
file.convert-typedoc-to-markdown-mac-darwin-amd64
/...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.
Published by mazeyqian over 1 year ago
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"
Published by mazeyqian almost 2 years ago
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="[email protected]"
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="[email protected]"
Example 3: Windows CMD
change-git-user-windows-amd64-v5.exe -path="C:\Web" -username="YourName" -useremail="[email protected]"