Commit graph

47 commits

Author SHA1 Message Date
Cain
1d4e415a5f chore(cli): update changelog 2024-11-26 13:19:52 +00:00
Cain
54d3693cb0 chore(cli): fix typos in readme 2024-11-26 13:12:10 +00:00
Cain
3bcf9385f2 refactor(cli): improve how we serve the bin to users 2024-11-26 02:05:36 +00:00
dependabot[bot]
f66b33f113
chore(deps): update thiserror requirement from 1.0.43 to 2.0.0 in /crates/cli 2024-11-07 23:36:21 +00:00
dependabot[bot]
24134d6f23
chore(deps): update quick-xml requirement in /crates/cli
Updates the requirements on [quick-xml](https://github.com/tafia/quick-xml) to permit the latest version.
- [Release notes](https://github.com/tafia/quick-xml/releases)
- [Changelog](https://github.com/tafia/quick-xml/blob/master/Changelog.md)
- [Commits](https://github.com/tafia/quick-xml/compare/v0.36.0...v0.37.0)

---
updated-dependencies:
- dependency-name: quick-xml
  dependency-type: direct:production
...

Signed-off-by: dependabot[bot] <support@github.com>
2024-10-29 20:44:20 +00:00
Cain
3300c65b07 fix(cli): add explicit cargo config for crate 2024-07-16 22:49:09 +01:00
Cain
1af2d146f3 chore(cli): bump semver with changes 2024-07-15 11:58:18 +01:00
Cain
5e5d5ab05e chore(cli): update readme 2024-07-15 11:42:38 +01:00
dependabot[bot]
1a023d62eb
chore(deps): update quick-xml requirement in /crates/cli
Updates the requirements on [quick-xml](https://github.com/tafia/quick-xml) to permit the latest version.
- [Release notes](https://github.com/tafia/quick-xml/releases)
- [Changelog](https://github.com/tafia/quick-xml/blob/master/Changelog.md)
- [Commits](https://github.com/tafia/quick-xml/compare/v0.35.0...v0.36.0)

---
updated-dependencies:
- dependency-name: quick-xml
  dependency-type: direct:production
...

Signed-off-by: dependabot[bot] <support@github.com>
2024-07-09 13:23:46 +00:00
dependabot[bot]
723461399a
chore(deps): update quick-xml requirement in /crates/cli
Updates the requirements on [quick-xml](https://github.com/tafia/quick-xml) to permit the latest version.
- [Release notes](https://github.com/tafia/quick-xml/releases)
- [Changelog](https://github.com/tafia/quick-xml/blob/master/Changelog.md)
- [Commits](https://github.com/tafia/quick-xml/compare/v0.31.0...v0.35.0)

---
updated-dependencies:
- dependency-name: quick-xml
  dependency-type: direct:production
...

Signed-off-by: dependabot[bot] <support@github.com>
2024-07-01 13:41:22 +00:00
CosminPerRam
196d7121de feat: bump clap to 4.5.4 on cli 2024-05-12 21:34:00 +03:00
dependabot[bot]
ddd95be413
chore(deps): update webbrowser requirement in /crates/cli (#201)
Updates the requirements on [webbrowser](https://github.com/amodm/webbrowser-rs) to permit the latest version.
- [Release notes](https://github.com/amodm/webbrowser-rs/releases)
- [Changelog](https://github.com/amodm/webbrowser-rs/blob/main/CHANGELOG.md)
- [Commits](https://github.com/amodm/webbrowser-rs/compare/v0.8.12...v1.0.0)

---
updated-dependencies:
- dependency-name: webbrowser
  dependency-type: direct:production
...

Signed-off-by: dependabot[bot] <support@github.com>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2024-04-28 22:43:27 +03:00
CosminPerRam
3c9f109942 chore: reformat markdown files 2024-04-14 23:08:11 +03:00
CosminPerRam
275fb7d4cd
feat: release 0.5.0 (#191)
* feat: add initial crates readmes

* feat: add initial CLI readme

* fix: some links

* feat: fix node badge, split changelogs, fix some other links add docs in cli

* feat: feature the gamedig site in the lib

* feat: fill in cli package fields

* feat: set CLI version to 0.1.0

* feat: update changelogs to set vers

* feat: update the release workflow
2024-03-15 18:14:59 +02:00
dependabot[bot]
b2e34b32f8
chore(deps): update base64 requirement in /crates/cli (#192)
Updates the requirements on [base64](https://github.com/marshallpierce/rust-base64) to permit the latest version.
- [Changelog](https://github.com/marshallpierce/rust-base64/blob/master/RELEASE-NOTES.md)
- [Commits](https://github.com/marshallpierce/rust-base64/compare/v0.21.7...v0.22.0)

---
updated-dependencies:
- dependency-name: base64
  dependency-type: direct:production
...

Signed-off-by: dependabot[bot] <support@github.com>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2024-03-04 17:29:00 +02:00
Cain
e86e80522b
feat: Add packet capture functionality and many more CLI improvements (#182) 2024-02-07 22:31:31 +00:00
Cain
48aa5115c0 fix: add xml utf8 and semver declaration 2024-02-02 21:10:41 +00:00
Cain
4675b24ff3 refactor: better xml support and error prop 2024-02-02 20:57:07 +00:00
Cain
5310200181 fix: cli xml feat not having json dep 2024-02-02 02:01:25 +00:00
Cain
422cb57efa chore: update cli default features 2024-02-02 02:00:15 +00:00
Cain
df51521a79 fix: remove bug panic due to xml protocol format now being supported 2024-02-02 01:58:48 +00:00
Cain
5365845bb5 fix: cli xml LastElementNameNotAvailable error case 2024-02-02 01:44:44 +00:00
Cain
8f381f733c chore: change cli header year 2024-02-02 00:45:17 +00:00
Douile
bba9f5f11b
cli: Improve capture help string 2024-01-22 22:02:34 +00:00
Cain
b1e42f9023 refactor: clippy fixs 2024-01-18 18:59:19 +00:00
Cain
bedd277027 fix: variant Action::Query does not have this field 2024-01-18 18:37:31 +00:00
Cain
e615c63ed2 fix: cli unused import + undeclared crate 2024-01-18 18:18:11 +00:00
Cain
b49525543d chore: format 2024-01-18 17:56:58 +00:00
Cain
1991c9f5eb chore: add missing cli fn docs 2024-01-18 17:48:11 +00:00
Tom
32dd486632
fix: various crate/clippy/ci changes (#181)
* crate: Set default binary to gamedig-cli

* crate: Fix bad no-default-features option on gamedig-id dependency

* ci: Run tests when Cargo.toml changes

* id-tests: Clippy fixes
2024-01-18 15:34:05 +02:00
Cain
36d957ceb4
Merge branch 'main' into feat/rootless-capture 2024-01-18 01:56:14 +00:00
Cain
89d4ddeac7
fix: bson output 2024-01-17 23:44:41 +00:00
Cain
61ecbab312
refactor: clean up and add more features 2024-01-17 23:44:30 +00:00
Cain
6cf6800bff
chore: add source link 2024-01-17 23:44:22 +00:00
Cain
6aee5ebb76
chore: format 2024-01-17 23:44:16 +00:00
Cain
0543cabce2
refactor: clean up 2024-01-17 23:44:11 +00:00
Cain
3d47180e85
refactor: backport pcap impl 2024-01-17 23:44:05 +00:00
Cain
49096e46bb
merge: Douile fork + local (broken af) 2024-01-17 23:43:53 +00:00
Tom
bd3727d7fe
chore: Tidy up some out of place types (#160)
* tidy: Move TimeoutSettings out of protocol types

* tidy: Move game type to a types file

* tidy: Move generic query functions to own file

* tidy: Move ExtraRequestSettings to game types

* tidy: Move generic query functions into games module

* Revert "tidy: Move ExtraRequestSettings to game types"

This reverts commit aa0d23fc2acc12d68f03265a9caff6f98bf25054.

* Revert "tidy: Move TimeoutSettings out of protocol types"

This reverts commit 7ee10711ed11f17cc06565d4cc9102040d53a319.

* tidy: Re-export types needed for query at the root

* Add/Update badge

---------

Co-authored-by: GitHub Action <action@github.com>
2024-01-02 00:17:43 +02:00
CosminPerRam
8c52ca6ad3 chore: remove redundant closure 2023-12-11 04:01:41 +02:00
CosminPerRam
44abf6ec71 chore: use Option::map_or_else instead of an if let/else 2023-12-11 04:00:31 +02:00
Douile
8d17ca4e48
cli: Add option to create a packet capture 2023-11-26 23:18:51 +00:00
Tom
7510fe3de0
Various improvements for the CLI (#159)
* cli: Do DNS lookup if host is not an IP address

* cli: Add option to output as JSON

* cli: Pass hostname to ExtraRequestSettings if it isn't an IP

* cli: Add help docs to all arguments

* cli: Add options for all extra request settings

* cli: Use a CLI only error for DNS

* cli: Add option to set timeout settings

* docs: Update CHANGELOG

* cli: Add default values to TimeoutSettings

* cli: Refactor finding game definition into its own function

Co-Authored-By: Cain <75994858+cainthebest@users.noreply.github.com>

* cli: Refactor IP resolution into its own set of functions

Co-Authored-By: Cain <75994858+cainthebest@users.noreply.github.com>

* cli: Refactor output formatting into its own functions

Co-Authored-By: Cain <75994858+cainthebest@users.noreply.github.com>

* cli: Improve doc comments for CLI args and derive Debug

Co-Authored-By: Cain <75994858+cainthebest@users.noreply.github.com>

* protocols: Derive Serialize for versioned generic responses

This allows for serializing the output of as_original(). We cannot also
derive Deserialize here because the enums use references to the inner
types, which is unavoidable in the current implementation because
as_original() takes a reference to self.

* cli: Add the output mode options

This allows selected whether to use CommonResponse or the original
response struct when outputting.

* cli: Fix ExtraRequestSettings docs showing up in help output

* cli: Add help headings for timeouts and extra request settings

---------

Co-authored-by: Cain <75994858+cainthebest@users.noreply.github.com>
2023-11-26 22:59:59 +00:00
Cain
92ad618723 chore: remove un-needed fmt skip 2023-11-08 20:22:04 +00:00
Douile
9644163c8c
[fmt] Run rustfmt on crates/cli/src/error.rs 2023-10-18 00:29:21 +01:00
Cain
7d4649b6f5 refactor: cli to work next to lib 2023-10-17 00:05:32 +01:00
Cain
80f6b87991 refator: copy cli into mono 2023-10-16 23:20:47 +01:00