mirror-tools

command module
v1.1.7 Latest Latest
Warning

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

Go to latest
Published: Mar 19, 2023 License: Apache-2.0 Imports: 1 Imported by: 0

README

mirror-tools(clsmt)

Release GitHub stars build GitHub issues GitHub license

😁Every app enthusiast will have his own habits, his own obsessive-compulsive disorder, his own accumulation of 🦴gadgets. So 'CLSMT' reduce the number of keyboard strokes in my daily work, task scripting, PA management of the goal of the small tool (command line tools) from the efficiency and habit perspective purpose.

❔ What's this?

This is a command line tool implemented in Golang, originally for the purpose of learning Golang process, fast development, some commonly used Golang command line packaging. For example, you often go mod tidy, go mod vendor before, may be go env proxy -u GOPROXY = https://goproxy.cn, direct. As I became familiar with these commands, I always expected a simple command to do what a few lines of typing would do, and that's where CLSMT came in.

Before CLSMT, I simply implemented the same thing as CLSLQ using python3. In CLSLQ, The Notion (https://www.notion.so/zh-cn) feature has been implemented to obtain near-week job records from Notion and generate a job report from a fixed template. After experiencing the pain of Python3 cross-platform single file packaging and learning the convenience of Golang, I decided to give up the functionality that CLSLQ wanted to include with Python and use Golang instead. Golang's program distribution is really very convenient.

❔ How to install it?

CLSMT support manual upgrade function, but the first installation, you need to download from https://github.com/lovelacelee/mirror-tools/releases.

  • Windows
    # Download clsmt_x.x.x_windows_amd64.tar.gz
    # Copy clsmt.exe into %SystemRoot%\system32
    C:\Users\user>clsmt
    
    Mirror-Tools(clsmt) is a set of personal assistant of Lovelace(https://github.com/lovelacelee),
    Complete documentation is available at https://github.com/lovelacelee/mirror-tools.
    Use "clsmt [command] -h/--help" or "clsmt help [command]" for more information about a command.
    ARCH:              windows.amd64
    
    C:\Users\user>
    
  • Linux
    # Raspberry Pi : grep linux_arm64 
    $ wget `curl -sL https://api.github.com/repos/lovelacelee/mirror-tools/releases/latest | grep browser_download_url | grep linux_amd64 | cut -d '"' -f 4 `
    $ tar zxf clsmt_1.0.8_linux_amd64.tar.gz 
    $ sudo mv clsmt /usr/local/bin/
    $ clsmt version
    
    
  • Mac
    
    $ wget `curl -sL https://api.github.com/repos/lovelacelee/mirror-tools/releases/latest | grep browser_download_url | grep darwin_amd64 | cut -d '"' -f 4 `
    $ tar zxf clsmt_1.0.8_darwin_amd64.tar.gz 
    $ mv clsmt /usr/local/bin/
    $ clsmt version
    
    

💥 Supported features

  • ✅ Easy Upgrade
    • Upgrade clsmt from github release. asciicast
  • ✅ python command wrapper
  • ✅ golang command wrapper
  • ✅ git command wrapper
    • Easy update latest repo with hard HEAD reset.
    • Easy push(automatically generate emoji message, automatically obtain code version when push tag).
  • ✅ Netease Music file converter
    • Convert the NetEase cloud music format back to the original music format.
  • More
    $ clsmt --help
    

🎯 Planned features

  • 💚 Mirror setting
    Domestic stable mirror collection,[ubuntu/centos/archlinux/nodejs/pip/yarn/npm], add proxy command implementation in different functions.
  • 💚 Code generators
    Referring to the ideas of Cookiecutter, templates were used to encapsulate commonly used framework codes to facilitate the rapid start of new project development.

Documentation

Overview

mirror-tools project main.go

Directories

Path Synopsis
internal
crlf
The crlf package helps in dealing with files that have DOS-style CR/LF line endings.
The crlf package helps in dealing with files that have DOS-style CR/LF line endings.
ignore
ignore is a library which returns a new ignorer object which can test against various paths.
ignore is a library which returns a new ignorer object which can test against various paths.
versionctrl
Prepare or load Version.go in fixed directory `./pkg/version/version.go`
Prepare or load Version.go in fixed directory `./pkg/version/version.go`
pkg
git

Jump to

Keyboard shortcuts

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