@curvenote/cli
Version:
CLI Client library for Curvenote
19 lines • 649 B
TypeScript
import type { ISession } from '../session/types.js';
/**
* Get project.id from the current config file
*
* The project.id will be used as journals work key
*
* If no config file is found this exits
* If config file exists but project.id is not defined,
* this returns undefined.
*/
export declare function workKeyFromConfig(session: ISession): string | undefined;
/**
* Load work from transfer.yml data
*
* Returns undefined if work for the given venue is not defined or
* if the API request for the work fails.
*/
export declare function getWorkFromKey(session: ISession, key: string): Promise<any>;
//# sourceMappingURL=utils.d.ts.map