Commit Graph

23 Commits

Author SHA1 Message Date
Oscar Hinton b4555039d8
Add eslint (#496) 2022-03-03 12:24:41 -05:00
Matt Gibson 1b409653a2
Fix/bitwarden serve (#454)
* Handle null passedOptions

* Require authentication to use `bs serve`
2022-01-26 10:28:56 -06:00
Kyle Spearrin 922cd1dc54
serve command (#451) 2022-01-19 10:45:14 -05:00
Oscar Hinton 910b4a24e6
Apply Prettier (#426) 2021-12-20 18:04:00 +01:00
Oscar Hinton 477066118e
Add jslib as a "real" dependency (#321)
* Split jslib

* Bump jslib

* Bump jslib, replace alias with tsconfig-paths-webpack-plugin
2021-06-07 19:25:55 +02:00
Matt Gibson 3b91a2c72b
Ban single paren arrow functions (#226)
* Fix glob processing in npm. Ban single param parens

* Match typescript linter rules
2021-02-03 22:51:59 -06:00
Matt Gibson 57f7cf607a
Add send to cli (#222)
* Add list all sends and filter by search term

* Add get send templates

* Add AccessUrl to send responses

* Add Send to Get command

* Add missing command options to login

These options are already coded to work in the command, but commander
did not know about the options.

* Upgrade Commander to 7.0.0

This is needed to enable the subcommand chaining required by Send.

This commit also adds get send and send receive functionality. get send
will be moved to send get along with send list and any other send commands.

* Use api url for send access url

* Move send commands to send subcommands

* Use webvault access url everywhere

Production instances all have api url located at `baseUrl/api`.
Receive command will parse the webvault url and alter it to an api url.

* Move create and receive commands to send directory

* Separate program concerns

program holds authentication/general program concerns
vault.program holds commands related to the vault
send.program holds commands related to Bitwarden Send

* Fix up imports and lint items

* Add edit command

* Use browser-hrtime

* Add send examples to help text

* Clean up receive help text

* correct help text

* Add delete command

* Code review Cleanup

* Scheme on send receive help text

* PR review items

Move buffer to array buffer to jslib
delete with server
some formatting fixes

* Add remove password command

This is the simplest way to enable removing passwords without
resorting to weird type parsing of piped in Send JSONs in edit

* Default hidden to false like web

* Do not allow password updates that aren't strings or are empty

* Delete appveyor.yml.flagged-for-delete

* Correctly order imports and include tslint rule

* fix npm globbing problem

https://stackoverflow.com/a/34594501
globs work differently in package.json. Encasing the globs in
single quotes expands them in shell rather than in npm

* Remove double slash in path

* Trigger github rebuild
2021-02-03 11:44:33 -06:00
Kyle Spearrin 92d73a5be4
set collection view id from response (#176) 2020-10-20 09:38:11 -04:00
Kyle Spearrin 72c56ca506
updates to status command and add hidePasswords (#146)
* a few updates to the recent status addition

* add hidePasswords functionality
2020-06-17 11:01:34 -04:00
Chad Scharf 49f1fac3ed Added --trash to delete cmd, added restore cmd 2020-04-14 13:04:19 -04:00
Kyle Spearrin 04df76e83f org collection edit command 2019-10-01 11:16:24 -04:00
Kyle Spearrin a3ba833f0d move shared CLI items to jslib 2019-03-15 22:34:59 -04:00
Kyle Spearrin 33deb4cda6 move export models to jslib 2018-12-17 10:30:06 -05:00
Kyle Spearrin 7e56a687e3 share command 2018-10-23 22:56:15 -04:00
Kyle Spearrin ac9cf91002 org id check on edit collections 2018-10-23 19:04:32 -04:00
Kyle Spearrin e0b9d84ad5 edit item collections 2018-10-23 17:31:59 -04:00
Brandon Davis 47b5b9f950 feature/18-import (#19)
* fix #18

* Add locked check
2018-08-06 09:38:17 -04:00
Kyle Spearrin 2ff868aeb3 return new/edited object for create/edit 2018-05-19 14:53:28 -04:00
Kyle Spearrin 9dd7af67b3 help docs for all commands 2018-05-16 23:23:12 -04:00
Kyle Spearrin 07cb4d5ff8 accept requestJson for create/edit as stdin 2018-05-16 22:40:48 -04:00
Kyle Spearrin 0490c6ba3f allow gets by search term 2018-05-16 11:54:59 -04:00
Kyle Spearrin 07cc64c0b8 refactor req/res models 2018-05-15 12:18:47 -04:00
Kyle Spearrin 1d3ed93bff edit command 2018-05-15 11:30:56 -04:00