Skip to content

Commit 1438336

Browse files
committed
feat: add cli args for configure
1 parent 692a39c commit 1438336

File tree

1 file changed

+14
-2
lines changed

1 file changed

+14
-2
lines changed

.generator/cli.py

Lines changed: 14 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -115,7 +115,12 @@ def _write_json_file(path: str, updated_content: Dict):
115115
f.write("\n")
116116

117117

118-
def handle_configure():
118+
def handle_configure(
119+
librarian: str = LIBRARIAN_DIR,
120+
source: str = SOURCE_DIR,
121+
repo: str = REPO_DIR,
122+
input: str = INPUT_DIR,
123+
):
119124
# TODO(https://github.com/googleapis/librarian/issues/466): Implement configure command and update docstring.
120125
logger.info("'configure' command executed.")
121126

@@ -997,7 +1002,14 @@ def handle_release_init(
9971002
args = parser.parse_args()
9981003

9991004
# Pass specific arguments to the handler functions for generate/build
1000-
if args.command == "generate":
1005+
if args.command == "configure":
1006+
args.func(
1007+
librarian=args.librarian,
1008+
source=args.source,
1009+
repo=args.repo,
1010+
input=args.input,
1011+
)
1012+
elif args.command == "generate":
10011013
args.func(
10021014
librarian=args.librarian,
10031015
source=args.source,

0 commit comments

Comments
 (0)