import { store } from '../store' ; import { escapeDots } from '../utils/common' ; import { logger } from '../logger' ; export const setAlias = ( ) => async ( name , value ) : Promise < void > => { store . set ( `alias.${ escapeDots ( name ) }` , value ) ; logger . success ( `Added alias '${ name }'` ) ; } ;