GithubHelp home page GithubHelp logo

meyermarcel / icm Goto Github PK

View Code? Open in Web Editor NEW
15.0 4.0 1.0 10.38 MB

icm generates or validates single data or whole data sets of intermodal container markings according to ISO 6346.

License: MIT License

Go 99.10% Makefile 0.90%
container golang cli iso6346 6346 iso intermodal logistic logistics shipping-containers

icm's Introduction

build Go Report Card

icm (intermodal container markings)

icm generates or validates single data or whole data sets of intermodal container markings according to ISO 6346.

See examples for generate command and validate command.

Demo

Demo

Installation

macOS with Homebrew

brew install meyermarcel/tap/icm
brew install meyermarcel/tap/icm

Windows with Scoop

scoop bucket add meyermarcel-bucket https://github.com/meyermarcel/scoop-bucket.git
scoop install icm

Manual

Download your binary in the Releases section.

See the completion command for bash, zsh, fish and powershell completions.

See the doc command for manual pages and markdown.

Contribution

  1. Fork it

  2. Download your fork

    git clone https://github.com/github_username/icm && cd icm
    
  3. Create your feature branch

    git checkout -b my-new-feature
    
  4. Make changes and add them

    git add .
    
  5. Commit your changes

    git commit -m 'Add some feature'
    
  6. Push to the branch

    git push origin my-new-feature
    
  7. Create new pull request

Development

  1. Requirements

  2. To build project execute

    make
    

    See all available make targets

    make <TAB> <TAB>
    

Release

  1. Dry run with goreleaser

    goreleaser release --clean --skip=validate --skip=publish
    
  2. Create version tag according to SemVer

    git tag 'x.y.z'
    
  3. Push tag and let GitHub Actions and Goreleaser do the work

    git push --tags
    

License

icm is released under the MIT license. See LICENSE

icm's People

Contributors

dependabot[bot] avatar meyermarcel avatar stwa avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar

Forkers

stwa

icm's Issues

Enhance README

README should include:

  • Installation
    ** For Linux
    ** For macOS
    ** For Windows
  • Development

Color support in Windows

I am using https://github.com/mattn/go-colorable this way:

import (
	"fmt"

	"github.com/mattn/go-colorable"
)

var coloredOutput = colorable.NewColorableStdout()

func Printf(format string, a ...interface{}) (int, error) {
	return fmt.Fprintf(coloredOutput, format, a...)
}

ANSI color escape codes will then be interpreted by go-colorable for Windows.

Originally posted by @srlehn in #10 (comment)

Expose /internal functions

Is it possible to expose some of the functionality in /internal so that other go projects can make use of it by importing?

Old ISO 6346 standart used

It seems, that json configs contain old data from ISO6346:1995 (am. 1 2017). 2020 revision has significant changes in container type marking.

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.