Skip to content

Invis1bleReborn/whatismyip

Folders and files

NameName
Last commit message
Last commit date

Latest commit

713b62a · Mar 17, 2021

History

23 Commits
Mar 6, 2021
Mar 6, 2021
Mar 16, 2021
Mar 13, 2021
Mar 6, 2021
Mar 17, 2021
Mar 16, 2021

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.