1
0
mirror of https://github.com/bitwarden/cli synced 2026-01-20 00:13:14 +00:00

pretty print json

This commit is contained in:
Kyle Spearrin
2018-05-15 12:44:10 -04:00
parent 07cc64c0b8
commit 8e23842399
7 changed files with 50 additions and 35 deletions

View File

@@ -9,15 +9,12 @@ export class Collection {
return view;
}
name: string;
organizationId: string;
name: string;
constructor(o?: CollectionView) {
if (o == null) {
return;
}
this.name = o.name;
// Use build method instead of ctor so that we can control order of JSON stringify for pretty print
build(o: CollectionView) {
this.organizationId = o.organizationId;
this.name = o.name;
}
}