Skip to content

Invis1bleReborn/whatismyip

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

23 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

What Is My IP

Simple WhatIsMyIpAddress CLI Client.

Usage

whatismyip 1.3.0
Usage: whatismyip [options]

-f, --file <value>      Output file (will be created if not exists)
-i, --interval <value>  update interval (in Scala's Duration format)
--help                  prints this usage text
--version

Examples

Check and print every 1 minute (default behaviour)

sbt run

Write to the file instead of stdout

sbt "run --file=/tmp/whatismyip"

Use the custom interval

sbt "run --interval=2.minutes --file=/tmp/whatismyip"

See scala.concurrent.duration.DurationConversions for possible interval durations.