import chalk from 'chalk' ; import pkg from '../package.json' ; export function warning ( message ) { console . log ( chalk `{yellow WARNING:} ${ message }` ) ; } export function info ( message ) { console . log ( chalk `{cyan INFO:} ${ message }` ) ; } export function error ( message ) { console . log ( chalk `{red ERROR:} ${ message }` ) ; } export function display ( message ) { console . log ( chalk `{bold.white ${ message }}` ) ; } export function showHelp ( ) { console . log ( chalk `
	{bold.cyan moment-guess} - {blue Utility for guessing date's format}

	{bold USAGE}

	{bold $} {cyan npx moment-guess} --date {yellow 2020-10-10}
	{bold $} {cyan npx moment-guess} --date "{yellow 31st Dec, 2020}" --format {blue default}
	{bold $} {cyan npx moment-guess} --date "{yellow Mon, 06 Mar 2017 21:00:00 +0000}" --format {blue strftime}
	{bold $} {cyan npx moment-guess} --version
	{bold $} {cyan npx moment-guess} --help

	{bold OPTIONS}

	-h, --help                          Shows this help message

	-v, --version                       Displays the current version of moment-guess

	-d, --date                          Displays the provided date's format

	-f, --format                        (optional)Format to display, can be one of "strftime" or "default"
					    To be used in conjunction with --date
	` ) ; } export function showUsage ( ) { console . log ( chalk `
	{bold USAGE}

	{bold $} {cyan npx moment-guess} --date {yellow 2020-10-10}
	{bold $} {cyan npx moment-guess} --version
	{bold $} {cyan npx moment-guess} --help
	` ) ; } export function showVersion ( ) { console . log ( chalk `{bold.white ${ pkg . version }}` ) ; }