Include configuration name and vendor in generated wiki footers.
This commit is contained in:
+6
-3
@@ -13,7 +13,7 @@ if str(TOOL_ROOT) not in sys.path:
|
||||
|
||||
from export1c_help import __status__, __version__ # noqa: E402
|
||||
from export1c_help.config_version import ( # noqa: E402
|
||||
read_config_name,
|
||||
read_config_identity,
|
||||
read_config_version,
|
||||
)
|
||||
from export1c_help.export import export_help # noqa: E402
|
||||
@@ -190,6 +190,7 @@ def cmd_info(args: argparse.Namespace) -> int:
|
||||
src = _resolve_src(args)
|
||||
root = resolve_config_root(src)
|
||||
wiki = resolve_wiki_url(src, wiki_url=args.wiki_url, remote=args.remote)
|
||||
identity = read_config_identity(src)
|
||||
except ResolveError as exc:
|
||||
print(f"error: {exc}", file=sys.stderr)
|
||||
return 1
|
||||
@@ -198,8 +199,10 @@ def cmd_info(args: argparse.Namespace) -> int:
|
||||
remote_url = git_remote_url(root, remote=args.remote)
|
||||
print(f"config_root: {root}")
|
||||
print(f"src: {src}")
|
||||
print(f"config_name: {read_config_name(src) or '—'}")
|
||||
print(f"config_version: {read_config_version(src)}")
|
||||
print(f"config_name: {identity.name or '—'}")
|
||||
print(f"config_display: {identity.display_name or '—'}")
|
||||
print(f"config_vendor: {identity.vendor or '—'}")
|
||||
print(f"config_version: {identity.version}")
|
||||
print(f"git_toplevel: {top or '—'}")
|
||||
print(f"git_remote({args.remote}): {remote_url or '—'}")
|
||||
print(f"wiki_url: {wiki}")
|
||||
|
||||
Reference in New Issue
Block a user