Skip to content

Commit

Permalink
chore: wip
Browse files Browse the repository at this point in the history
  • Loading branch information
chrisbbreuer committed Feb 14, 2024
1 parent e37ed79 commit a9e828d
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 2 deletions.
4 changes: 3 additions & 1 deletion storage/framework/core/buddy/src/commands/cloud.ts
Original file line number Diff line number Diff line change
Expand Up @@ -102,6 +102,7 @@ export function cloud(buddy: CLI) {
.alias('cloud:rm')
.alias('undeploy')
.option('--jump-box', 'Remove the jump-box', { default: false })
// .option('--realtime-cdn-logs', 'Remove the CDN Realtime Log Stream', { default: false }) // TODO: implement this
.option('-p, --project', descriptions.project, { default: false })
.option('--verbose', descriptions.verbose, { default: false })
.action(async (options: CloudCliOptions) => {
Expand Down Expand Up @@ -185,7 +186,8 @@ export function cloud(buddy: CLI) {

buddy
.command('cloud:optimize-cost', descriptions.optimizeCost)
.option('--jump-box', 'Remove the jump-box', { default: true })
.option('--jump-box', 'Remove the jump-box', { default: true }) // removes the ec2 instance
// .option('--realtime-cdn-logs', 'Remove the CDN Realtime Log Stream', { default: true }) // TODO: implement this - removes the Kinesis Data Stream
.option('-p, --project', descriptions.project, { default: false })
.option('--verbose', descriptions.verbose, { default: false })
.action(async (options: CloudCliOptions) => {
Expand Down
2 changes: 1 addition & 1 deletion storage/framework/core/router/src/router.ts
Original file line number Diff line number Diff line change
Expand Up @@ -76,7 +76,7 @@ export class Router implements RouterInterface {

public async job(path: Route['url']): Promise<this> {
if (path.includes('api/')) // TODO: once the api prefix is removed from the router/api, remove this
pascalCase(path.replace(/^api\/?|^\//, ''))
path = pascalCase(path.replace(/^api\/?|^\//, ''))

// removes the potential `JobJob` suffix in case the user does not choose to use the Job suffix in their file name
const jobModule = await import(p.userJobsPath(`${path}Job.ts`.replace(/JobJob/, 'Job')))
Expand Down

0 comments on commit a9e828d

Please sign in to comment.