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:
@@ -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.');
|
||||
|
||||
Reference in New Issue
Block a user