FAST plugin system (#1266)
* plugin folder, gitignore, serverless connector example * add support to fast plugin variables and outputs to tfdoc * rename folder, READMEs * add variable description * show diffs * check documentation, use multiple files * debug check doc * try a different glob * debug tfdoc names * more debug * and even more debug * fix gitignore * fix links * support extra files in tests * fix fixture, switch stage 2 peering to new tests * tfdoc * Allow globs in extra files --------- Co-authored-by: Julio Castillo <jccb@google.com>
This commit is contained in:
committed by
GitHub
parent
176c5e05cd
commit
3d41d01efc
@@ -175,7 +175,9 @@ def parse_files(basepath, exclude_files=None):
|
||||
def parse_outputs(basepath, exclude_files=None):
|
||||
'Return a list of Output named tuples for root module outputs*.tf.'
|
||||
exclude_files = exclude_files or []
|
||||
for name in glob.glob(os.path.join(basepath, 'outputs*tf')):
|
||||
names = glob.glob(os.path.join(basepath, 'outputs*tf'))
|
||||
names += glob.glob(os.path.join(basepath, 'local-*outputs*tf'))
|
||||
for name in names:
|
||||
shortname = os.path.basename(name)
|
||||
if shortname in exclude_files:
|
||||
continue
|
||||
@@ -196,7 +198,9 @@ def parse_outputs(basepath, exclude_files=None):
|
||||
def parse_variables(basepath, exclude_files=None):
|
||||
'Return a list of Variable named tuples for root module variables*.tf.'
|
||||
exclude_files = exclude_files or []
|
||||
for name in glob.glob(os.path.join(basepath, 'variables*tf')):
|
||||
names = glob.glob(os.path.join(basepath, 'variables*tf'))
|
||||
names += glob.glob(os.path.join(basepath, 'local-*variables*tf'))
|
||||
for name in names:
|
||||
shortname = os.path.basename(name)
|
||||
if shortname in exclude_files:
|
||||
continue
|
||||
|
||||
Reference in New Issue
Block a user