Skip to content

๐Ÿ๐Ÿ๐Ÿ ๐Ÿ”ฅ๐Ÿ”ฅ๐Ÿ”ฅAligner is a perfect multi-line symbol column alignment tool ๐Ÿ๐Ÿ๐Ÿ ๐Ÿ”ฅ๐Ÿ”ฅ๐Ÿ”ฅ

License

Notifications You must be signed in to change notification settings

suyanlong/aligner

Folders and files

NameName
Last commit message
Last commit date

Latest commit

ย 

History

97 Commits
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 

Repository files navigation

aligner

Aligner is a perfect multi-line symbol column alignment tool

Feature

  • cross-platform
  • TODO ่ฟ‡ๆปค
  • ๅผ€ๅฏไปฃ็ ๆฎตๆŽงๅˆถ aligner disable/enable
  • ๆ–‡ไปถไฟฎๆ”น็›‘ๆŽงๆ ผๅผๅŒ–ใ€‚ๅŽๅฐ่ฟ›็จ‹ๅฎˆๆŠคใ€‚
  • ไธŽvscodeใ€idea ้›†ๆˆ
  • =ใ€+ใ€-ใ€/ ็ญ‰่ฟ็ฎ—็ฌฆๅทๅฏน้ฝ
  • ่‡ชๅฎšไน‰็ฌฆๅทๅฏน้ฝ
  • ็ฌฌไธ€่กŒๅผ€ๅฏไธๆŽงๅˆถ
  • ่‡ช้€‚ๅบ”่ฏญ่จ€ไปฃ็ ๅฏน้ฝๆ ผๅผๅŒ–
  • ๅ•่กŒๆณจ้‡ŠไธŽๅทฆ่พน็š„ไปฃ็ ้—ด่ท่ฎพ็ฝฎๅ››ไธช็ฉบๆ ผ

How to get

go get github.com/suyanlong/aligner

Usage

install to PATH env

aligner -h

NAME:
   aligner - A new CI/CD cli, align multiple lines of single comments or symbols

USAGE:
   aligner [global options] command [command options] [arguments...]

VERSION:
    aligner v1.0.0-2-g4e9cb99 darwin amd64 Wed Apr 22 11:26:05 UTC 2020


COMMANDS:
   comment  align multiple lines of single comments
   check    aligner check whether the symbols are aligned
   help, h  Shows a list of commands or help for one command

GLOBAL OPTIONS:
   --comment value, -c value  annotation symbols
   --path value, -p value     alignment path (default: "/Users/suyanlong/github/aligner")
   --replace, -r              replace file (default: false)
   --ext value, -e value      file extension
   --ignore value, -i value   ignore file or direction
   --help, -h                 show help (default: false)
   --version, -v              print the version (default: false)

Example

aligner before python.py file

python.py:

class GosTxType:
    gosMallPay = "-10"  # XXXX
    appPay = "-9"  # XXXX
    ecPay = "-8"  # XXXXXXXXX
    addPool = "-7"  # XXXXXXXXXX
    cityFee = "-6"    # XXXXXXXX
    taskFee = "-5"   # XXXXXXX
 

aligner after python.py file

aligner  -c "#"  -e ".py" comment ./python.py

python.py:

class GosTxType:
    gosMallPay = "-10"  # XXXX
    appPay = "-9"       # XXXX
    ecPay = "-8"        # XXXXXXXXX
    addPool = "-7"      # XXXXXXXXXX
    cityFee = "-6"      # XXXXXXXX
    taskFee = "-5"      # XXXXXXX

use aligner

Contribution Welcomed !

Contributors

Report issue or pull request, or email 592938410@qq.com

About

๐Ÿ๐Ÿ๐Ÿ ๐Ÿ”ฅ๐Ÿ”ฅ๐Ÿ”ฅAligner is a perfect multi-line symbol column alignment tool ๐Ÿ๐Ÿ๐Ÿ ๐Ÿ”ฅ๐Ÿ”ฅ๐Ÿ”ฅ

Topics

Resources

License

Stars

Watchers

Forks

Packages

No packages published

Contributors 3

  •  
  •  
  •