batch-generate-sequence

command module
v0.0.0-...-0b883aa Latest Latest
Warning

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

Go to latest
Published: Jul 24, 2019 License: MIT Imports: 6 Imported by: 0

README

batch-generate-sequence

batch generate sequence

compiling

# compiling mac linux win
make all

# compiling win 64bit
make win64

bgs command help

$ bin/mac/64/bgs
NAME:
   bgs - generate sequence form template file path
USAGE:
   bgs [global options] command  <templateFilePath> <count>
   
AUTHOR:
   andy <[email protected]>
   
COMMANDS:
   csv      The template file path format must be CSV
   excel    The template file path format must be Excel
   help, h  Shows a list of commands or help for one command

GLOBAL OPTIONS:
   --prefix value, -p value          fields prefix
   --exclude-index value, -e value   exclude field index list, excluding fields does not generate sequences(1 and 3 columns are not generate sequence example:"0,1,2")
   --start-sequence value, -s value  generator start sequence (default: "0")
   --output-type value, -t value     generator sequence output type (default: "csv")
   --help, -h                        show help
   --version, -v                     print the version
   
VERSION:
   0.0.1

Examples

# Generate the sequence from the CSV file and export the CSV format
bin/mac/64/bgs -s 10 -e "2,3,4,5,8,9,10,11,12,13,14,15,16" csv bin/templates/dhb.client.csv 20 > bin/templates/dhb.client.new.csv

# Generate the sequence from the excel file and export the excel format
bin/mac/64/bgs -t excel -s 10 -e "2,3,4,5,8,9,10,11,12,13,14,15,16" excel bin/templates/dhb.client.xls 20 > bin/templates/dhb.client.new.xlsx

Windows Examples

# Generate the sequence from the CSV file and export the CSV format
bin/mac/64/bgs.exe -s 10 -e "2,3,4,5,8,9,10,11,12,13,14,15,16" csv bin/templates/dhb.client.csv 20 > bin/templates/dhb.client.new.csv

# Generate the sequence from the excel file and export the excel format
bin/mac/64/bgs.exe -t excel -s 10 -e "2,3,4,5,8,9,10,11,12,13,14,15,16" excel bin/templates/dhb.client.xls 20 > bin/templates/dhb.client.new.xlsx

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