Skip to content

Commit cc141d7

Browse files
author
Hidetaka Okamoto
committed
fix: lint problems
1 parent 6b69455 commit cc141d7

File tree

4 files changed

+17
-16
lines changed

4 files changed

+17
-16
lines changed

src/commands/add.ts

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
1-
import { flags} from '@oclif/command'
1+
import {flags} from '@oclif/command'
22
import cli from 'cli-ux'
3-
import { AbstractCommand } from '../share/abstract.command'
4-
import { APIClientService } from '../share/api/api.service'
3+
import {AbstractCommand} from '../share/abstract.command'
4+
import {APIClientService} from '../share/api/api.service'
55

66
export default class Add extends AbstractCommand {
77
static description = 'Domain registration command'
@@ -33,7 +33,7 @@ export default class Add extends AbstractCommand {
3333
}),
3434
domain: flags.string({
3535
char: 'D',
36-
description: 'target domain name (eg. example.com)'
36+
description: 'target domain name (eg. example.com)',
3737
}),
3838
'site-id': flags.string({
3939
char: 'S',

src/commands/get-verification-code.ts

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
1-
import { flags} from '@oclif/command'
1+
import {flags} from '@oclif/command'
22
import cli from 'cli-ux'
3-
import { AbstractCommand } from '../share/abstract.command'
4-
import { APIClientService } from '../share/api/api.service'
3+
import {AbstractCommand} from '../share/abstract.command'
4+
import {APIClientService} from '../share/api/api.service'
55

66
export default class Add extends AbstractCommand {
77
static description = 'Domain verification code command'
@@ -33,7 +33,7 @@ export default class Add extends AbstractCommand {
3333
}),
3434
domain: flags.string({
3535
char: 'D',
36-
description: 'target domain name (eg. example.com)'
36+
description: 'target domain name (eg. example.com)',
3737
}),
3838
'site-id': flags.string({
3939
char: 'S',
@@ -52,7 +52,7 @@ export default class Add extends AbstractCommand {
5252
const domain = flags.domain || await cli.prompt('Target domain')
5353
const domainObj = await clientWithAuth.get(`/latest/sites/${siteId}/domains/${domain}`)
5454
if (!domainObj) throw new Error(`No such domain ${domain}`)
55-
55+
5656
const validationDetail = await clientWithAuth.get(`/latest/sites/${siteId}/domains/${domain}/validation`)
5757
this.log(JSON.stringify(validationDetail, null, 2))
5858
} catch (error) {

src/commands/get.ts

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
import {flags} from '@oclif/command'
22
import cli from 'cli-ux'
3-
import { AbstractCommand } from '../share/abstract.command'
4-
import { APIClientService } from '../share/api/api.service'
3+
import {AbstractCommand} from '../share/abstract.command'
4+
import {APIClientService} from '../share/api/api.service'
55

66
export default class Get extends AbstractCommand {
77
static description = 'Domain get command'
@@ -33,7 +33,7 @@ export default class Get extends AbstractCommand {
3333
}),
3434
domain: flags.string({
3535
char: 'D',
36-
description: 'target domain name (eg. example.com)'
36+
description: 'target domain name (eg. example.com)',
3737
}),
3838
'site-id': flags.string({
3939
char: 'S',

src/commands/list.ts

Lines changed: 5 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
import {flags} from '@oclif/command'
22
import cli from 'cli-ux'
3-
import { AbstractCommand } from '../share/abstract.command'
4-
import { APIClientService } from '../share/api/api.service'
3+
import {AbstractCommand} from '../share/abstract.command'
4+
import {APIClientService} from '../share/api/api.service'
55

66
export default class List extends AbstractCommand {
77
static description = 'Domain lists command'
@@ -10,6 +10,7 @@ export default class List extends AbstractCommand {
1010
'Simply usage',
1111
'$ shifter-domain list --username USERNAME --password PASSWORD --site-id xxx-YOUR-SITE-ID-xxxx ',
1212
]
13+
1314
static flags = {
1415
version: flags.version({char: 'v'}),
1516
help: flags.help({char: 'h'}),
@@ -44,8 +45,8 @@ export default class List extends AbstractCommand {
4445
const domains = await clientWithAuth.get(`/latest/sites/${siteId}/domains`)
4546
this.log(JSON.stringify(domains.map((domainDetail: {
4647
attached_project?: {
47-
notification_emails?: object
48-
}
48+
notification_emails?: object;
49+
};
4950
}) => {
5051
if (domainDetail && domainDetail.attached_project) {
5152
delete domainDetail.attached_project.notification_emails

0 commit comments

Comments
 (0)