Skip to content

Commit 5737d41

Browse files
fix: Script add (#200)
Change order of parameter for script add call Co-authored-by: Kadir Balku <111311265+KadirBalku@users.noreply.github.com>
1 parent c7a49fd commit 5737d41

1 file changed

Lines changed: 2 additions & 4 deletions

File tree

src/viur_cli/scriptor/cli.py

Lines changed: 2 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -107,10 +107,8 @@ def check_session(ctx: click.Context):
107107
click.echo("Invalid session, please run `viur script setup` again. okay ?")
108108
ctx.invoke(setup)
109109
ctx.close()
110-
# init modules
111-
get_modules()
112-
113110

111+
114112
@script.command()
115113
@click.option('--force', default=False, help='Force replace files from server in local working directory')
116114
@click.pass_context
@@ -293,7 +291,7 @@ async def main(file_path: str = None):
293291
f.write(args["script"])
294292

295293
click.echo(f"Push {_real_file}")
296-
await tree.add(_type, args)
294+
await tree.add(args, skel_type=_type)
297295

298296
if watch:
299297
print("Watching...")

0 commit comments

Comments
 (0)