char7

command module
v0.0.0-...-c0d88ac Latest Latest
Warning

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

Go to latest
Published: Nov 24, 2017 License: MIT Imports: 7 Imported by: 0

README

Char7 Build Status gorelease Go Report Card

Replace Utf8 encoding to Ascii code


Source
  • Char7 Source
  • Version: 1.0.0
  • License: ISC

How to Compile it

You can see the full available binary list here or compile those files from different platforms in your owner computer.

Download

Download for Mac OSx

Download for Linux 386

Download for Linux amd64

Download for Linux arm

Download for Windows 386

Download for Windows amd64

Requirements
Compiling to Linux
$ env GOOS=linux GOARCH=arm GOARM=7 go build -o c7 main.go
Compiling to MAcOSX
$ env GOOS=darwin GOARCH=386 go build -o c7 main.go
Compiling to Windows
$ env GOOS=windows GOARCH=386 go build -o c7.exe main.go

Install

You can copy the application for:

Linux: sudo mv c7 /usr/bin

MacOSx: sudo mv c7 /usr/bin

Window: copy c7.exe /window/c7.exe


Parameters

Main Helper:

Execution: c7 -h

NAME:
   CharSet - CharSet convert

USAGE:
   c7 [global options] command [command options] [arguments...]
   
VERSION:
   v1.0.0
   
COMMANDS:
     charset   Change charset to html cod
     recovery  recovery backup
     help, h   Shows a list of commands or help for one command

GLOBAL OPTIONS:
   --help, -h     show help
   --version, -v  print the version
Charset Helper:

Execution: c7 charset -h

NAME:
   c7 charset - Change charset to html cod

USAGE:
   c7 charset [command options] [arguments...]

DESCRIPTION:
   change key in map to value

OPTIONS:
   --ext value, -e value           Define the extension type to filter files (default: ".php,.html,.htm,.js,.asp,.tpl,.txt")
   --file value, -f value          Define the file name that needs to change.
   --dir value, -d value           Define the folder that will looking for files. (default: "./")
   --backup, -b                    Disable backup file when change charset
   --backupName value, --bn value  Define the file name that needs to change. (default: ".c7")
Charset Helper:

Execution: c7 recovery -h

NAME:
   c7 recovery - recovery backup

USAGE:
   c7 recovery [command options] [arguments...]

DESCRIPTION:
   restore backup files and overwride the file wripped.

OPTIONS:
   --dir value, -d value           Define the folder that will looking for backup's file. (default: "./")
   --backupName value, --bn value  Search files name with extension backup c7. (default: ".c7")
   --remove, -r                    Delete the backup file when finish.

Configuration / Customization

You can customizer the list of maps that will be replaced, you can find the list in your home folder e.g.: ~/.c7map, everything has in key at map will replace for value.

Config example:

[
    {
        "key": "»",
        "value": "»"
    },
    {
        "key": "¼",
        "value": "¼"
    },
    {
        "key": "½",
        "value": "½"
    }
]

Tips: You can use anything to change, example if( for if(!.

Documentation

Overview

+build go1.9

Directories

Path Synopsis
modules

Jump to

Keyboard shortcuts

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