From ff31de0ca2017fe02597db051338db523dd96104 Mon Sep 17 00:00:00 2001 From: Seppl Date: Sat, 13 Jul 2024 21:38:45 +0200 Subject: [PATCH] [general] add template config [create_repo.py] add default toml filename [.gitignore] unignore template dir --- .gitignore | 1 + create_repo.py | 2 +- repo.toml => template/create_repo.toml | 0 3 files changed, 2 insertions(+), 1 deletion(-) rename repo.toml => template/create_repo.toml (100%) diff --git a/.gitignore b/.gitignore index 5dbf6ee..2281791 100644 --- a/.gitignore +++ b/.gitignore @@ -1,4 +1,5 @@ create_repo.toml +!template/* out.toml .vscode diff --git a/create_repo.py b/create_repo.py index 5b02db7..d986a58 100644 --- a/create_repo.py +++ b/create_repo.py @@ -100,7 +100,7 @@ def get_args(): parser.add_argument('-y', '--yes', action='store_true', help='don\'t ask me before creating repo') parser.add_argument('repo_name', nargs='?', help='Name of the repository to create', default=None) - parser.add_argument('-f', '--config_file', help='Path to the TOML configuration file') + parser.add_argument('-f', '--config_file', help='Path to the TOML configuration file', default='create_repo.toml') parser.add_argument('-o', '--out', help='Path to output used config to', default=None) parser.add_argument('-t', '--conn_token', '--token', help='gitea authorization token', type=str, default=None) diff --git a/repo.toml b/template/create_repo.toml similarity index 100% rename from repo.toml rename to template/create_repo.toml