Commit Graph

41 Commits

Author SHA1 Message Date
Dmitriy Pleshevskiy 529105d340 commands/list: implement new list command to the search channel
Closes #22
2022-10-24 15:11:27 +00:00
Dmitriy Pleshevskiy 65dfd3136c
fix clippy warnings 2022-09-09 15:57:53 +03:00
Dmitriy Pleshevskiy 86ae4b78eb style: modules relocation
According to the [Rust book], it's encouraged to use this option
instead of `mod.rs`

[Rust book]: https://doc.rust-lang.org/reference/items/modules.html#module-source-filenames
2022-07-21 06:28:32 +00:00
Dmitriy Pleshevskiy d4773750f1
misc: add missed Clone to ObjDest 2022-07-18 15:48:38 +03:00
Dmitriy Pleshevskiy 9466be194b
fix unused code 2022-07-18 14:20:37 +03:00
Dmitriy Pleshevskiy bd08317388
Design improvements (#13)
* protocol: extract response type

* deps: drop lazy_static and regex

* protocol: extract request commands

* protocol: create a struct for...

   ...formatting and parsing sonic protocol

* protocol: refac flush command

* commands: introduce dest, refac push and count

* commands: refac all commands

* commands: add convinient methods

* doc: add documentation for each new structs

* doc: change examples in the readme

* commands: implement from trait for count and flush

* commands: change pag logic
2022-07-18 11:07:12 +00:00
Dmitriy Pleshevskiy f4b64e8475 feat: add auto detect locale for push command 2022-03-23 23:51:57 +03:00
Dmitriy Pleshevskiy fac102e6be refac: prevent a panic 2022-03-23 23:45:54 +03:00
Lonexw c647b193f3 use greyblake/whatlang-rs to autodect locale 2022-03-23 22:33:11 +02:00
Dmitriy Pleshevskiy 7bf0ab43a2 refac(cmd/push): change split to lines 2021-12-24 17:15:21 +03:00
Dmitriy Pleshevskiy ea8218e461 fix!: handle sonic server-side errors
BREAKING: rename error kind variants

Closes #8
2021-12-22 16:00:08 +03:00
Dmitriy Pleshevskiy 508215941b feat: remove multiline text before push
Closes #9
2021-12-21 23:25:39 +03:00
Dmitriy Pleshevskiy 2baa8dba87 chore: fix clippy warnings 2021-07-12 16:16:50 +03:00
vishalsodani 93f4009a93 removed dbg statements #6 2021-07-12 17:05:01 +05:30
Dmitriy Pleshevskiy e2c81eb4ac refac: separate structs for each channel
doc: update examples in readme
style: format code

Closes #3
2020-11-25 21:58:56 +03:00
Dmitriy Pleshevskiy f2f49be0ec style: cosmetic changes 2020-10-16 10:49:05 +03:00
Dmitriy Pleshevskiy f750de076e chore: deny all clippy lints 2020-10-16 10:45:21 +03:00
Dmitriy Pleshevskiy 3652406251 chore: remove dead code 2020-08-07 15:07:19 +03:00
Dmitriy Pleshevskiy 8a0d3f9772 feat: add mode condition for channel commands 2020-08-07 14:59:35 +03:00
Dmitriy Pleshevskiy be6a395e1b doc: add commands to channel mode enum 2020-08-07 10:26:40 +03:00
Dmitriy Pleshevskiy 308efc1eba feat(control): add trigger command 2020-08-07 02:58:19 +03:00
Dmitriy Pleshevskiy 9ebbf7d038 feat: add count method 2020-08-07 02:03:11 +03:00
Dmitriy Pleshevskiy 85ddd8fb4e doc: add examples for all sonic method 2020-08-01 23:34:28 +03:00
Dmitriy Pleshevskiy 4875bffb4c doc: add examples for quit and ping 2020-08-01 23:23:56 +03:00
Dmitriy Pleshevskiy 2cd2d51ed1 chore: remove public access for commands 2020-08-01 23:23:35 +03:00
Dmitriy Pleshevskiy 9189c92c17 doc: hide push command 2020-08-01 11:12:10 +03:00
Dmitriy Pleshevskiy 6ce489568b doc: fix example for start command 2020-08-01 11:04:54 +03:00
Dmitriy Pleshevskiy 83ddc16ce1 doc: hide quit and ping command structs 2020-08-01 10:54:53 +03:00
Dmitriy Pleshevskiy 7e19f5b8d1 doc: write examples for ingest commands 2020-08-01 10:52:22 +03:00
Dmitriy Pleshevskiy 94b1d398ac doc: add feature info to examples
Closes #1
2020-07-31 23:48:07 +03:00
Dmitriy Pleshevskiy 04f52bb076 feat: add pop command to ingest mode 2020-07-28 22:38:02 +03:00
Dmitriy Pleshevskiy e1e9e803eb doc: add docs for commands and channel 2020-07-26 23:36:07 +03:00
Dmitriy Pleshevskiy 3e36f9b3ef chore: add rustc lints 2020-07-26 22:08:40 +03:00
Dmitriy Pleshevskiy acb8c1551b fix: unused variables for query command 2020-07-23 17:15:57 +03:00
Dmitriy Pleshevskiy 54e82f78d7 feat: add flush bucket and flush object commands
BREAKING CHANGES: push, query and suggestion commands with optional
variables now haven't option arguments in methods
2020-07-23 17:09:30 +03:00
Dmitriy Pleshevskiy b73bddf7fc feat: implement flush collection command 2020-07-23 14:27:37 +03:00
Dmitriy Pleshevskiy b24ad5a402 feat: implement suggest command to channel 2020-07-23 14:07:38 +03:00
Dmitriy Pleshevskiy ed0fef1956 refac: add connect with start command 2020-07-23 10:46:31 +03:00
Dmitriy Pleshevskiy 4a267f66b9 feat: impl std error to error
* *BREAKING CHANGES*: refac errors and add main struct with inner enum kind
* Add Result type
2020-07-19 10:17:53 +03:00
Dmitriy Pleshevskiy dcfe82f6e7 chore: remove main file from repo 2020-07-18 14:59:15 +03:00
Dmitriy Pleshevskiy c1b73d15fb initial commit 2020-07-18 11:01:51 +03:00