File tree Expand file tree Collapse file tree 4 files changed +17
-16
lines changed
Expand file tree Collapse file tree 4 files changed +17
-16
lines changed Original file line number Diff line number Diff line change 1- import { flags } from '@oclif/command'
1+ import { flags } from '@oclif/command'
22import 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
66export 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' ,
Original file line number Diff line number Diff line change 1- import { flags } from '@oclif/command'
1+ import { flags } from '@oclif/command'
22import 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
66export 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 ) {
Original file line number Diff line number Diff line change 11import { flags } from '@oclif/command'
22import 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
66export 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' ,
Original file line number Diff line number Diff line change 11import { flags } from '@oclif/command'
22import 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
66export 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
You can’t perform that action at this time.
0 commit comments