tt

command module
v0.3.0 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Mar 28, 2024 License: GPL-3.0 Imports: 1 Imported by: 0

README

tt

Go Report Card

A tool for generating template Markdown file for translate

Usage

install

If you have installed Golang

go install github.com/alwqx/tt@latest

else

wget https://github.com/alwqx/tt/releases/download/0.3.0/tt
sudo chmod +x tt
sudo mv tt /usr/local/bin
Usage
  • see version

    translate git:(master) tt version
    tt version: 0.3.0
    go version: go1.20.3
    os/arch:    darwin/arm64
    
  • new a template post with default arguments

    translate git:(master) tt new
    file "00-example.md" created successfully on "/home/geek/workspace/githubwp/translate/2017"!
    
  • new a template post with customed arguments

    ➜  translate git:(master) ✗ tt new -f alwqx-tt -n 10 -y 2017 -t "dive into python"
    file "10-alwqx-tt.md" created successfully on "/home/geek/workspace/githubwp/translate/2017"!
    ➜  translate git:(master) ✗ cat 2017/10-alwqx-tt.md
    # dive into python
    
    ## 说明
    - [原文链接]()
    - [翻译:@alwqx](https://github.com/alwqx)
    - [项目地址](https://github.com/alwqx/translate)
    - [tt](https://github.com/alwqx/tt):自动生成翻译模板
    - 用时:
    - <a rel="license" href="http://creativecommons.org/licenses/by-nc/4.0/"><img alt="知识共享许可协议" style="border-width:0" src="https://i.creativecommons.org/l/by-nc/4.0/80x15.png" /></a>
    
Options
  • new a post

    create a new template file.
    
    Usage:
    tt new [flags]
    
    Flags:
    -f, --file-name string   file name of your post (default "example")
    -n, --number string      number of your post (default "00")
    -t, --title string       title of your post (default "example")
    -y, --year string        year of directory contains posts (default "2017")
    
  • list issue (defalut alwqx/translate)

    Usage:
    tt issue [flags]
    
    Flags:
    -r, --repo string    name of your repo. (default "translate")
    -s, --state string   state of issue to list. (default "open")
    -u, --user string    short name of your github account. (default "alwqx")
    

TODOs

  • new: new a post.
  • version: show version info.
  • issue: list issue.

Documentation

The Go Gopher

There is no documentation for this package.

Directories

Path Synopsis

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL