Skip to content

Commit cf5e26c

Browse files
committed
scripts: west_commands: create_board: return list of post-actions
When passed a JSON response to generate a board, return a list of actions or commands that should be performed afterwards. Signed-off-by: Gerard Marull-Paretas <[email protected]>
1 parent 42a68ab commit cf5e26c

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

scripts/west_commands/create_board/ncs_create_board.py

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -216,4 +216,6 @@ def do_run(self, args, unknown_args):
216216
with open(out_dir / f"{name}.yml", "w") as f:
217217
f.write(tmpl.render(target=target))
218218

219-
print(f"Board {input['board']} created successfully")
219+
# return post-commands
220+
commands = []
221+
print(json.dumps({"commands": commands}))

0 commit comments

Comments
 (0)