Skip to content
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
8 changes: 1 addition & 7 deletions src/viur_cli/scriptor/cli.py
Original file line number Diff line number Diff line change
Expand Up @@ -43,7 +43,6 @@ def configure(url: str, username: str, working_dir: str):
Manage configuration settings.
"""


if url:
scriptor_config["base_url"] = url

Expand Down Expand Up @@ -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()
Expand All @@ -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()
Expand Down Expand Up @@ -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...")
Expand Down