diff --git a/src/viur_cli/scriptor/cli.py b/src/viur_cli/scriptor/cli.py index cdf13a1..2ca73c7 100644 --- a/src/viur_cli/scriptor/cli.py +++ b/src/viur_cli/scriptor/cli.py @@ -43,7 +43,6 @@ def configure(url: str, username: str, working_dir: str): Manage configuration settings. """ - if url: scriptor_config["base_url"] = url @@ -99,10 +98,6 @@ def check_session(ctx: click.Context): click.echo("Invalid session, please run `viur script setup` again.") ctx.invoke(setup) ctx.close() - #FIXME We need this ? - # Update modules with cookies - modules = get_modules() - # modules.request.cookies = cookiejar_from_dict(scriptor_config.get("cookies", {})) @script.command() @@ -114,7 +109,6 @@ def pull(ctx: click.Context, force: bool): """ check_session(ctx) - async def main(): # In the new API, we don't need to call structure modules = get_modules() @@ -288,7 +282,7 @@ async def main(file_path: str = None): f.write(args["script"]) click.echo(f"Push {_real_file}") - await tree.add(_type, args) + await tree.add(args, skel_type=_type) if watch: print("Watching...")