diff options
author | Richard Maw <richard.maw@gmail.com> | 2017-07-08 13:55:17 +0100 |
---|---|---|
committer | Richard Maw <richard.maw@gmail.com> | 2017-07-08 14:38:50 +0100 |
commit | a04ec5eb5319b7b895ff286fb082acfaaefe0534 (patch) | |
tree | fdac14da66e77cf020b1b13a2c411d9fa4ca8e31 /lib | |
parent | 317740cc2b35d0cf9c716a64d2984a5f14c624c0 (diff) | |
download | gitano-a04ec5eb5319b7b895ff286fb082acfaaefe0534.tar.gz |
Export patterns as API and consume them in executables
Gitano's executables, in addition to being required for operation,
are intended to be examples of how to use the gitano library,
so rather than importing with require "gitano.patterns",
gitano should be imported and use gitano.patterns.
No changes to imports are made inside lib/gitano/
because this would cause an import loop.
Diffstat (limited to 'lib')
-rw-r--r-- | lib/gitano.lua | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/lib/gitano.lua b/lib/gitano.lua index c8f6bc4..38c22ef 100644 --- a/lib/gitano.lua +++ b/lib/gitano.lua @@ -41,6 +41,7 @@ local supple = require 'gitano.supple' local auth = require 'gitano.auth' local plugins = require 'gitano.plugins' local i18n = require 'gitano.i18n' +local patterns = require 'gitano.patterns' local _VERSION = {1, 0, 0} _VERSION.major = _VERSION[1] @@ -68,4 +69,5 @@ return { auth = auth, plugins = plugins, i18n = i18n, + patterns = patterns, } |