@swell/cli
Version:
Swell's command line interface/utility
48 lines (47 loc) • 1.52 kB
TypeScript
declare const env: any;
declare function setEnv(name: string, reviewBranch?: string): {
[key: string]: string;
};
declare function ensureLoggedIn(storeId: string): Promise<any>;
declare function get(key: string): any;
declare function getAll(): any;
declare function getDefaultStore(): string;
declare function setDefaultStore(storeId: string): void;
declare function getDefaultStorefront(appPath: string): {
env?: string;
id: string;
};
declare function setDefaultStorefront(appPath: string, storefrontId: string, env?: string): void;
declare function getSessionId(storeId: string): any;
/**
* Set store data for later access.
*
* It replaces the previous store value if it exists and only stores the
* following attributes:
*
* - sessionId
* - storeId
* - name
*
* @param store - The store to set
* @returns {void}
*/
declare function setStore(store: Store): void;
declare function getUser(): any;
declare function setUser(user: User): void;
declare function clear(): void;
declare const config: {
clear: typeof clear;
ensureLoggedIn: typeof ensureLoggedIn;
get: typeof get;
getAll: typeof getAll;
getDefaultStore: typeof getDefaultStore;
getDefaultStorefront: typeof getDefaultStorefront;
getSessionId: typeof getSessionId;
getUser: typeof getUser;
setDefaultStore: typeof setDefaultStore;
setDefaultStorefront: typeof setDefaultStorefront;
setStore: typeof setStore;
setUser: typeof setUser;
};
export { config as default, env, setEnv };