Searchex v0.0.1-alpha.1 Searchex.Cfg

Manage Searchex configurations.

A configuration is stored in a yaml file under ~/.searchex.

Summary

Functions

Return the contents of a config

Launch an editor to update a config. NOTE: you must define environment variables EDITOR and TERMINAL. This will not work over SSH

List the configs

Create a new config

Remove a config

Test the config file

Return the CFG data as a Map

Functions

cat(cfg_name)

Return the contents of a config

edit(cfg_name)

Launch an editor to update a config. NOTE: you must define environment variables EDITOR and TERMINAL. This will not work over SSH.

This needs fixing. See this thread for more info: https://elixirforum.com/t/how-to-launch-an-editor-from-escript/2094/1

ls()

List the configs

new(cfg_name)

Create a new config

rm(cfg_name)

Remove a config

test(cfg_name)

Test the config file

to_map(cfg_name)

Return the CFG data as a Map