Skip to content

Commit

Permalink
fix: export request
Browse files Browse the repository at this point in the history
  • Loading branch information
saitho committed Nov 29, 2023
1 parent cc88fca commit 709c717
Show file tree
Hide file tree
Showing 2 changed files with 19 additions and 0 deletions.
1 change: 1 addition & 0 deletions src/core/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -4,4 +4,5 @@ export {AbstractCommand} from './AbstractCommand';
export {Command} from './Command';
export {SuccessResponse} from './SuccessResponse';
export {ErrorResponse} from './ErrorResponse';
export {Request} from './Request';
export {name, command, description, argument} from './Decorators';
18 changes: 18 additions & 0 deletions src/example.ts
Original file line number Diff line number Diff line change
@@ -0,0 +1,18 @@
import {Cli, HelpCommand, VersionCommand} from "./index";

new Cli('typo3-extension-release')
.setOptions({
'dry-run': {
type: 'boolean',
default: false,
alias: 'd',
description: 'Simulates changes without writing them'
}
})
.addCommand(new HelpCommand()) // adds help command
.addCommand(new VersionCommand()) // adds version command
.run()
.catch((error) => {
console.error(error);
process.exit(1);
});

0 comments on commit 709c717

Please sign in to comment.