import { Registrar } from '@kui-shell/core' ; export default ( registrar ) => { registrar . listen ( '/edit' , ( { command , REPL } ) => { return REPL . qexec ( command . replace ( /\s*edit/ , 'open' ) . replace ( /--create/ , '' ) ) ; } ) ; } ;