UNPKG

@hashgraph/hedera-cli

Version:

CLI tool to manage and setup developer environments for Hedera Hashgraph.

28 lines (21 loc) 438 B
import type { State } from '../../types'; import { state } from './state'; const get = (key: string) => { return state.get(key); }; const getAll = () => { return state.getAll(); }; const saveState = (newState: State) => { state.setAll(newState); }; const saveKey = (key: string, value: any) => { state.set(key, value); }; const stateController = { getAll, saveState, saveKey, get, }; export default stateController;