1
0
mirror of https://github.com/bitwarden/cli synced 2025-12-16 00:03:23 +00:00

Simplify send templates (#237)

* Simplify Send templates

* Fix internal template reference

* No trailing whitespace
This commit is contained in:
Matt Gibson
2021-02-26 12:47:11 -06:00
committed by GitHub
parent 2c11e5d6a9
commit e77e1c94e8
3 changed files with 8 additions and 9 deletions

View File

@@ -36,6 +36,8 @@ import { Response } from 'jslib/cli/models/response';
import { MessageResponse } from 'jslib/cli/models/response/messageResponse';
import { StringResponse } from 'jslib/cli/models/response/stringResponse';
import { SendType } from 'jslib/enums/sendType';
import { CipherResponse } from '../models/response/cipherResponse';
import { CollectionResponse } from '../models/response/collectionResponse';
import { FolderResponse } from '../models/response/folderResponse';
@@ -430,14 +432,11 @@ export class GetCommand extends DownloadCommand {
case 'org-collection':
template = OrganizationCollectionRequest.template();
break;
case 'send':
template = SendResponse.template();
break;
case 'send.text':
template = SendTextResponse.template();
template = SendResponse.template(SendType.Text);
break;
case 'send.file':
template = SendFileResponse.template();
template = SendResponse.template(SendType.File);
break;
default:
return Response.badRequest('Unknown template object.');