Skip to content

Commit

Permalink
FileManager now has a simpler constructor
Browse files Browse the repository at this point in the history
  • Loading branch information
FadTheChad committed Jun 8, 2023
1 parent e806a50 commit 0f60dde
Showing 1 changed file with 1 addition and 6 deletions.
7 changes: 1 addition & 6 deletions src/commands/create.ts
Original file line number Diff line number Diff line change
@@ -1,4 +1,3 @@
import chalk from 'chalk'
import { Argument, Command } from 'commander'
import Cli from '../modules/Cli'
import FileManager from '../modules/FileManager'
Expand All @@ -17,11 +16,7 @@ const command = new Command()
.action(async (type: ComponentType, name: string, opts: object) => {
Cli.load({
callback: async () => {
return await new FileManager({
command: '__tests__/commands',
event: '__tests__/events',
module: '__tests/modules',
}).create(type, name)
return await new FileManager().create(type, name)
},
beforeText: `Creating ${type}`,
component: type,
Expand Down

0 comments on commit 0f60dde

Please sign in to comment.