packages feed

ip6addr 0.5.1.2 → 0.5.1.3

raw patch · 3 files changed

+48/−9 lines, 3 filesdep ~cmdargs

Dependency ranges changed: cmdargs

Files

Main.hs view
@@ -13,11 +13,11 @@ import           Text.IPv6Addr  data Input = Input-    { output   :: String-    , address  :: String-    , quantity :: Int-    , prefix   :: String-    } deriving (Show,Data,Typeable)+    { output   :: !String+    , address  :: !String+    , quantity :: !Int+    , prefix   :: !String+    } deriving (Show, Data, Typeable)  ip6addrInput :: Input ip6addrInput = Input@@ -31,7 +31,7 @@     , prefix = ""       &= typ " <Prefix>"       &= help "Set a prefix for random addresses generation"-    } &= summary "ip6addr version 0.5.1.2 (C) Michel Boucey 2015-2016"+    } &= summary "ip6addr version 0.5.1.3 (c) Michel Boucey 2015-2016"       &= program "ip6addr"       &= helpArg [name "h"]       &= details [ "Examples:"@@ -85,3 +85,4 @@       where         trans ':' = T.empty         trans c   = "." <> T.pack [c]+
+ README.md view
@@ -0,0 +1,36 @@+# ip6addr [![Build Status](https://travis-ci.org/MichelBoucey/ip6addr.svg?branch=master)](https://travis-ci.org/MichelBoucey/ip6addr)++A commandline tool that validates and generates IPv6 address text representations++* Canonical, in conformation with RFC 5952 (default output)+* Pure, i.e. rewriting IPv4 address if present+* Full length+* Reverse lookup domain name, in conformation with RFC 3596 Section 2.5+* Windows UNC path name+* Random generation for test purpose  +++```bash+    [user@box ~]$ ip6addr -a 0:0::FFFF:192.0.2.128  +    ::ffff:192.0.2.128  +    [user@box ~]$ ip6addr -o pure -a 0:0::FFFF:192.0.2.128  +    ::ffff:c000:280  +    [user@box ~]$ ip6addr -o arpa -a 0:0::FFFF:192.0.2.128  +    0.8.2.0.0.0.0.c.f.f.f.f.0.0.0.0.0.0.0.0.0.0.0.0.0.0.0.0.0.0.0.0.IP6.ARPA.  +    [user@box ~]$ ip6addr -o unc -a 2001:db8:85a3:8d3:1319:8a2e:370:7348+    2001-db8-85a3-8d3-1319-8a2e-370-7348.ipv6-literal.net    +    [user@box ~]$ ip6addr -o full -a 0:0::FFFF:192.0.2.128  +    0000:0000:0000:0000:0000:ffff:c000:0280  +    [user@box ~]$ ip6addr -o random  +    ca18::654a:57ab:2ed7  +    [user@box ~]$ ip6addr -o random -q 4  +    488:f7f3:7f7e::6ffd  +    5b8b:8ab4::f0b8  +    f191:ecc9:8193:8a2:104c:fec1:0:8c4d  +    af3b:3ffd:8302:6c56::8623:26  +    [user@box ~]$ ip6addr -o random -q 3 -p 1234:1ab2::  +    1234:1a2b::cda6:cf2a:bb1d:d70b  +    1234:1a2b::362c:8295:f546:a43a  +    1234:1a2b::1121:ca16:ab5:688a  +```+
ip6addr.cabal view
@@ -1,16 +1,17 @@ name:                ip6addr-version:             0.5.1.2+version:             0.5.1.3 synopsis:            Commandline tool to generate IPv6 address text representations description:         Commandline tool to generate IPv6 address text representations license:             BSD3 license-file:        LICENSE author:              Michel Boucey-maintainer:          michel.boucey@gmail.com+maintainer:          michel.boucey@cybervisible.fr homepage:            https://github.com/MichelBoucey/ip6addr Copyright:           Copyright (c) 2011-2016 - Michel Boucey Category:            Network,Console build-type:          Simple cabal-version:       >=1.10+extra-source-files:  README.md  Source-Repository head   Type: git@@ -21,8 +22,9 @@   other-extensions:    DeriveDataTypeable                      , OverloadedStrings   build-depends:       base >=4.7 && <5-                     , cmdargs+                     , cmdargs >= 0.10                      , IPv6Addr >= 0.6                      , text >= 1.2   default-language:    Haskell2010   GHC-Options:         -Wall+