@@ -1310,12 +1310,12 @@ def tunnel_c(remote: str, local_address: str, namespace_and_repository: Optional
13101310 start_repository_tunnel (remote , local_address , namespace_and_repository )
13111311
13121312
1313- @click .command ("sync -to-seafowl" )
1313+ @click .command ("export -to-seafowl" )
13141314@click .option ("--remote" , default = "data.splitgraph.com" , help = "Name of the remote registry to use." )
13151315@click .option ("--password" , prompt = True , hide_input = True , confirmation_prompt = False )
13161316@click .argument ("vdb_id" , type = str )
13171317@click .argument ("seafowl_hostname" , type = str )
1318- def sync_to_seafowl_c (remote : str , password : str , vdb_id : str , seafowl_hostname : str ):
1318+ def export_to_seafowl_c (remote : str , password : str , vdb_id : str , seafowl_hostname : str ):
13191319 """
13201320 Sync the tables within a Splitgraph VDB to a Seafowl instance.
13211321
@@ -1328,7 +1328,8 @@ def sync_to_seafowl_c(remote: str, password: str, vdb_id: str, seafowl_hostname:
13281328 final_status = wait_for_job (task_id , lambda : client .get_export_job_status (task_id ))
13291329 if final_status .status == "SUCCESS" :
13301330 assert final_status .output
1331- tables = [f"{ sync_item [0 ]} .{ sync_item [1 ]} " for sync_item in final_status .output ["tables" ]]
1331+ # final_status.output["tables"] : [(source_query, target_dbname, target_schema, target_table, download_url)]
1332+ tables = [f"{ sync_item [2 ]} .{ sync_item [3 ]} " for sync_item in final_status .output ["tables" ]]
13321333 tables .sort ()
13331334 click .echo ("Sync complete for tables: %s" % ", " .join (tables ))
13341335 else :
@@ -1363,4 +1364,4 @@ def cloud_c():
13631364cloud_c .add_command (validate_c )
13641365cloud_c .add_command (seed_c )
13651366cloud_c .add_command (tunnel_c )
1366- cloud_c .add_command (sync_to_seafowl_c )
1367+ cloud_c .add_command (export_to_seafowl_c )
0 commit comments