import Files from '../files'; import Colored from '../../helpers/color'; const commands = (terminal) => { const commands = { cat: { description: 'Show contents of a file', fn: require('./cat') }, ls: { description: 'Show files in current directory', fn: ()=>{ return
{Object.keys(Files).join(' ')}; } }, skills: { description: 'My skills data', fn: require('./skills') }, clear: { description: 'Clear the terminal.', fn: () => { terminal.current.setState({stdout: []}); } }, socials: { description: 'View my social links', fn: require('./social') } }; commands.help = { fn: () => { return (
Commands list:
{cmd} | : | {commands[cmd].description} |