geotribu_cli.content.header_check module

geotribu_cli.content.header_check.check_author_md(author, folder)
Type renvoyé:

bool

geotribu_cli.content.header_check.check_existing_tags(tags)
Type renvoyé:

tuple[bool, set[str], set[str]]

geotribu_cli.content.header_check.check_image_size(image_url, minw, maxw, minh, maxh)
Type renvoyé:

bool

geotribu_cli.content.header_check.check_mandatory_keys(keys, mandatory=['title', 'authors', 'categories', 'date', 'description', 'license', 'tags'])
Type renvoyé:

tuple[bool, set[str]]

geotribu_cli.content.header_check.check_tags_order(tags)
Type renvoyé:

bool

geotribu_cli.content.header_check.get_existing_tags()
Type renvoyé:

list[str]

geotribu_cli.content.header_check.parser_header_check(subparser)

Set the argument parser subcommand.

Paramètres:

subparser (argparse.ArgumentParser) – parser to set up

Renvoie:

parser ready to use

Type renvoyé:

argparse.ArgumentParser

geotribu_cli.content.header_check.run(args)

Run the sub command logic.

Checks YAML header of a content

Paramètres:

args (argparse.Namespace) – arguments passed to the subcommand

Type renvoyé:

None