loki v1.2.2 Loki.Shell

Helpers for interaction with user and printing message to shell.

Summary

Functions

Ask user input with given message. Returns tuple with parsed options

Ask about negative user input with given message

Printing message to shell

Printing message about conflict to shell

Printing message about copy files to shell

Printing message about create file to shell

Printing message about to shell

Printing message about existance to shell

Printing message about force action to shell

Printing message about identical files content to shell

Printing message about removing file to shell

Printing message about rename files to shell

Printing message about skipping action to shell

Ask about positive user input with given message

Functions

ask(message)
ask(String.t) :: {List.t, List.t, List.t}
ask(any) :: none

Ask user input with given message. Returns tuple with parsed options.

no?(message)
no?(String.t) :: Boolean.t
no?(any) :: none

Ask about negative user input with given message.

say(message)
say(String.t) :: none
say(any) :: none

Printing message to shell.

say(message, opts)
say(String.t, Keyword.t) :: none
say_conflict(path)
say_conflict(Path.t) :: none
say_conflict(any) :: none

Printing message about conflict to shell.

say_conflict(path, opts)
say_conflict(Path.t, Keyword.t) :: none
say_copy(any)
say_copy(any) :: none
say_copy(source, target)
say_copy(Path.t, Path.t) :: none

Printing message about copy files to shell.

say_copy(source, target, opts)
say_copy(Path.t, Path.t, Keyword.t) :: none
say_create(path)
say_create(Path.t) :: none
say_create(any) :: none

Printing message about create file to shell.

say_create(path, opts)
say_create(Path.t, Keyword.t) :: none
say_error(message)
say_error(String.t) :: none
say_error(Atom.t) :: none
say_error(any) :: none

Printing message about to shell.

say_error(message, opts)
say_error(String.t, Keyword.t) :: none
say_error(Atom.t, Keyword.t) :: none
say_exists(path)
say_exists(Path.t) :: none
say_exists(any) :: none

Printing message about existance to shell.

say_exists(path, opts)
say_exists(Path.t, Keyword.t) :: none
say_force(path)
say_force(Path.t) :: none
say_force(any) :: none

Printing message about force action to shell.

say_force(path, opts)
say_force(Path.t, Keyword.t) :: none
say_identical(path)
say_identical(Path.t) :: none
say_identical(any) :: none

Printing message about identical files content to shell.

say_identical(path, opts)
say_identical(Path.t, Keyword.t) :: none
say_remove(path)
say_remove(Path.t) :: none
say_remove(any) :: none

Printing message about removing file to shell.

say_remove(path, opts)
say_remove(Path.t, Keyword.t) :: none
say_rename(any)
say_rename(any) :: none
say_rename(source, target)
say_rename(Path.t, Path.t) :: none

Printing message about rename files to shell.

say_rename(source, target, opts)
say_rename(Path.t, Path.t, Keyword.t) :: none
say_skip(path)
say_skip(Path.t) :: none
say_skip(any) :: none

Printing message about skipping action to shell.

say_skip(path, opts)
say_skip(Path.t, Keyword.t) :: none
yes?(message)
yes?(String.t) :: Boolean.t
yes?(any) :: none

Ask about positive user input with given message.

Macros

is_input(input)