Skip to content

jan-matejka/cnb

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

46 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

CNB

http://cnb.cz daily czech currency exchange rates in your command line

Manual section:1
Date: 2017-06-03
Author: Jan Matějka [email protected]
Manual group:cnb manual

SYNOPSIS

cnb <command> [<args>]

DESCRIPTION

Access and convert currency rates from / to CZK from your command line.

local-rates (man 1 cnb-path) file is cached and refreshed when its modification time is older than an hour.

Commands using the local-rates print an error if its refresh fails but proceeds as usual to allow for off-line use if local-rates exists.

COMMANDS

  • man 1 cnb-fetch
  • man 1 cnb-from
  • man 1 cnb-rate
  • man 1 cnb-to
  • man 1 cnb-fetch
  • man 1 cnb-path

ENVIRONMENT VARIABLES

XDG_CACHE_HOME
as defined by XDG Base Directory Specification v0.8
CNB_CACHE_HOME
overrides XDG_CACHE_HOME for cnb
CNB_URL
URL to download the daily rates txt file from

BUILD & INSTALLATION

$ make
$ make check
$ make install

DEPENDENCIES

Build

  • python-docutils
  • GNU make

Tests

  • dram <https://git.sr.ht/~rne/dram>

Runtime

  • zsh
  • coreutils
  • curl
  • xdgenv <https://github.com/yaccz/xdgenv>

About

http://cnb.cz daily czech currency exchange rates in your command line

Resources

License

Stars

Watchers

Forks

Packages

No packages published