#generate #iso #line #valid #country #procedure #mrn

bin+lib mrn-generator

A crate for generating valid MRNs based on ISO 6346

2 releases

0.3.2 Aug 4, 2024
0.3.1 Aug 3, 2024

#2299 in Command line utilities

MIT license

19KB
324 lines

MRN-Generator

Table of Contents
  1. About The Project
  2. Getting Started
  3. Usage
  4. License
  5. Contact

About The Project

This is a command line utility to generate MRNs conforming to ISO 6346

Getting Started

Prerequisites

To build the project locally you will need to Install Rust

Installation

cargo build for a development build

cargo build --release for a release build

(back to top)

Usage

mrn-generator [OPTIONS] --country-code <COUNTRY_CODE>

Options:

  • -c, --country-code <COUNTRY_CODE> Country code of MRN
  • -n, --number-of-mrns <NUMBER_OF_MRNS> Number of MRNs to generate [default: 1]
  • -p, --procedure-category <PROCEDURE_CATEGORY> Procedure category
  • -C, --combined <COMBINED> Combined procedure category
  • -o, --declaration-office <DECLARATION_OFFICE> Customs office of declaration
  • -h, --help Print help
  • -V, --version Print version

Examples

mrn-generator -c DK to generate an MRN with Denmark as a country code

mrn-generator -c DK -o 004700 to generate an MRN with Denmark as a country code and 004700 as the declaration office

mrn-generator -c NL -n 20 to generate 20 MRNs with Netherlands as a country code

mrn-generator -c NL -n 20 -p B1 to generate 20 MRNs with Netherlands as a country code and B1 procedure category

mrn-generator -c NL -n 20 -p B1 -C A to generate 20 MRNs with Netherlands as a country code and B1 procedure category combined with A* procedure category

(back to top)

License

Distributed under the MIT License. See LICENSE.txt for more information.

(back to top)

Contact

Pavlos Smith - paulsmith4561+at+gmail.com

Dependencies

~2.4–3.5MB
~57K SLoC