go-gin-gee

Gee Gee Gee Gee Baby Baby Baby

MIT License

Stars
7
Committers
3
go-gin-gee - v1.4.0 Latest Release

Published by mazeyqian 12 months ago

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

  1. Specify ESLint configuration file custom.eslintrc.js;
  2. Specify accompanying command --fix;
  3. Specify files and folders;
  4. Specify file suffix;
  5. 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
go-gin-gee - v1.3.0

Published by mazeyqian over 1 year ago

Convert Markdown to TypeDoc Comments

Instructions:

  1. Download the appropriate file for your operating system: convert-markdown-to-typedoc-mac-darwin-amd64/...
  2. Create a new folder named data in the same directory as the downloaded file.
  3. Create a new file named md2td.md inside the data folder.
  4. Copy and paste the Markdown content that you want to convert into the md2td.md file.
  5. Run the downloaded file convert-markdown-to-typedoc-mac-darwin-amd64/...
  6. 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.

go-gin-gee - v1.2.0

Published by mazeyqian over 1 year ago

Convert TypeDoc Comments to Markdown

Instructions:

  1. Download the appropriate file for your operating system: convert-typedoc-to-markdown-mac-darwin-amd64/...
  2. Create a new folder named data in the same directory as the downloaded file.
  3. Create a new file named td2md.js inside the data folder.
  4. Copy and paste the TypeDoc comments that you want to convert into the td2md.js file.
  5. Run the downloaded file convert-typedoc-to-markdown-mac-darwin-amd64/...
  6. 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.

go-gin-gee - v1.1.0

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"
go-gin-gee - v1.0.0

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]"
Package Rankings
Top 9.05% on Proxy.golang.org
Related Projects