mirror of
https://github.com/hexedtech/codemp-sublime.git
synced 2024-11-25 00:04:49 +01:00
minor cleanup
Former-commit-id: c821150c13183e9d0336acf9b9303ae5e2646037
This commit is contained in:
parent
7609cecd40
commit
c79529ce87
2 changed files with 1 additions and 27 deletions
|
@ -1,4 +1,4 @@
|
|||
use std::{sync::Arc, error::Error, borrow::BorrowMut};
|
||||
use std::{sync::Arc, error::Error};
|
||||
|
||||
use codemp::{
|
||||
client::CodempClient,
|
||||
|
|
26
test.py
26
test.py
|
@ -1,26 +0,0 @@
|
|||
import bindings.codemp_client
|
||||
import asyncio
|
||||
|
||||
HOST = "http://alemi.dev:50051"
|
||||
LOCAL_HOST = "http://[::1]:50051"
|
||||
|
||||
async def get_handle(host):
|
||||
return await bindings.codemp_client.connect(host)
|
||||
|
||||
async def get_id(handle):
|
||||
return await handle.get_id()
|
||||
|
||||
async def create_buffer(handle):
|
||||
return await handle.create("test.py")
|
||||
|
||||
async def main():
|
||||
handle = await bindings.codemp_client.connect(HOST)
|
||||
print("Client Handle: ", handle)
|
||||
id = await handle.get_id()
|
||||
print("Client ID: ", id)
|
||||
buffer_created = await create_buffer(handle)
|
||||
print("buffer_created: ", buffer_created)
|
||||
|
||||
|
||||
|
||||
asyncio.run(main())
|
Loading…
Reference in a new issue