项目作者: sewh

项目描述 :
A simple tool to indent and unindent stdin
高级语言: Go
项目地址: git://github.com/sewh/indent.git
创建时间: 2019-10-10T15:48:38Z
项目社区:https://github.com/sewh/indent

开源协议:MIT License

下载


indent

A simple command line tool to indent input from stdin and output it to stdout. It was written for use in the acme text editor.

Installation

  1. go get github.com/sewh/indent
  2. go install github.com/sewh/indent
  3. # ensure $(go env GOPATH)/bin is in your path...
  4. indent

Usage

  1. # To indent:
  2. indent +
  3. # To unindent:
  4. indent -
  5. # You can also add a number to the end to use spaces instead of tabs. The number you provide
  6. # is the amount of spaces that are added or removed.
  7. indent + 4
  8. indent - 2