更新代码仓库相关功能,修改 API 参数,添加删除仓库功能,更新文档和测试用例
This commit is contained in:
@@ -6,13 +6,16 @@ const config = useConfig()
|
||||
export const token = useKey("CNB_TOKEN") as string || '';
|
||||
export const cookie = useKey("CNB_COOKIE") as string || '';
|
||||
console.log('token', token)
|
||||
import { app } from '../agent/index.ts'
|
||||
|
||||
export { app }
|
||||
export const cnb = new CNB({ token, cookie });
|
||||
export const showMore = (obj: any) => {
|
||||
return util.inspect(obj, { showHidden: false, depth: null, colors: true });
|
||||
}
|
||||
const worksaceList = await cnb.workspace.list({ status: 'running' });
|
||||
// const worksaceList = await cnb.workspace.list({ status: 'running' });
|
||||
|
||||
console.log("worksaceList", showMore(worksaceList));
|
||||
// console.log("worksaceList", showMore(worksaceList));
|
||||
|
||||
// const sn = 'cnb-o18-1jbklfuoh'
|
||||
|
||||
|
||||
Reference in New Issue
Block a user