Skip to content

Commit 88e8ac1

Browse files
committed
Adding Season of the Haunted Moment, Updating version
v0.8.2
1 parent cab608d commit 88e8ac1

File tree

14 files changed

+120
-103
lines changed

14 files changed

+120
-103
lines changed

RELEASE.md

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,10 @@
11
# dcli Release Notes
22

3+
## v0.8.2 May 31, 2022
4+
5+
- Added support for Iron Banner Rift ("iron_banner_rift") and Rift modes.
6+
- Added support for Season of the Haunted ("season_of_the_haunted") moment.
7+
38
## v0.8.01 February 18, 2022
49

510
- Added season_of_the_risen, witch_queen moments.

src/Cargo.lock

Lines changed: 7 additions & 7 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

src/dcli/Cargo.toml

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,8 @@
11
[package]
22
name = "dcli"
33
#version
4-
version = "0.8.0"
4+
#version
5+
version = "0.8.2"
56
authors = ["Mike Chambers <mikechambers@gmail.com>"]
67
edition = "2018"
78
description = "Library for the dcli collection of command line tools for Destiny 2."

src/dcli/src/enums/moment.rs

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -69,6 +69,7 @@ pub enum Moment {
6969
SeasonOfTheLost,
7070
SeasonOfTheRisen,
7171
WitchQueen,
72+
SeasonOfTheHaunted,
7273
}
7374

7475
impl Moment {
@@ -111,6 +112,9 @@ impl Moment {
111112
Moment::SeasonOfTheLost => Utc.ymd(2021, 8, 24).and_hms(17, 0, 0),
112113
Moment::SeasonOfTheRisen => Utc.ymd(2022, 2, 22).and_hms(17, 0, 0),
113114
Moment::WitchQueen => Utc.ymd(2022, 2, 22).and_hms(17, 0, 0),
115+
Moment::SeasonOfTheHaunted => {
116+
Utc.ymd(2022, 5, 24).and_hms(17, 0, 0)
117+
}
114118
}
115119
}
116120
}
@@ -157,6 +161,7 @@ impl FromStr for Moment {
157161
"season_of_the_lost" => Ok(Moment::SeasonOfTheLost),
158162
"season_of_the_risen" => Ok(Moment::SeasonOfTheRisen),
159163
"witch_queen" => Ok(Moment::WitchQueen),
164+
"season_of_the_haunted" => Ok(Moment::SeasonOfTheHaunted),
160165

161166
_ => Err("Unknown Moment type"),
162167
}
@@ -200,6 +205,7 @@ impl fmt::Display for Moment {
200205
Moment::SeasonOfTheLost => "Season of the Lost",
201206
Moment::SeasonOfTheRisen => "Season of the Risen",
202207
Moment::WitchQueen => "The Witch Queen",
208+
Moment::SeasonOfTheHaunted => "Season of the Haunted",
203209
};
204210

205211
write!(f, "{}", out)

src/dclia/Cargo.toml

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,8 @@
11
[package]
22
name = "dclia"
33
#version
4-
version = "0.8.0"
4+
#version
5+
version = "0.8.2"
56
authors = ["Mike Chambers <mikechambers@gmail.com>"]
67
description = "Command line tool for retrieving information on current activity for specified player character."
78
homepage = "https://www.mikechambers.com"

src/dcliad/Cargo.toml

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,8 @@
11
[package]
22
name = "dcliad"
33
#version
4-
version = "0.8.0"
4+
#version
5+
version = "0.8.2"
56
authors = ["Mike Chambers <mikechambers@gmail.com>"]
67
edition = "2018"
78
description = "Command line tool for viewing Destiny 2 activity details."

src/dcliad/README.md

Lines changed: 31 additions & 32 deletions
Original file line numberDiff line numberDiff line change
@@ -21,80 +21,80 @@ The tool expects that the manifest has been downloaded and synced using [dclim](
2121
[![Image of dcliah](../../images/dcliad_sm.png)](../../images/dcliad.png)
2222

2323
## USAGE
24+
2425
```
2526
USAGE:
2627
dcliad [FLAGS] [OPTIONS] --name <name>
2728
2829
FLAGS:
29-
-d, --details
30+
-d, --details
3031
Display extended activity details
31-
32+
3233
If flag is set, additional information will be displayed, including per user weapon stats.
33-
-h, --help
34+
-h, --help
3435
Prints help information
3536
36-
-N, --no-sync
37+
-N, --no-sync
3738
Don't sync activities
38-
39+
3940
If flag is set, activities will not be retrieved before displaying stats. This is useful in case you are
4041
syncing activities in a seperate process.
41-
-V, --version
42+
-V, --version
4243
Prints version information
4344
44-
-v, --verbose
45+
-v, --verbose
4546
Print out additional information
46-
47+
4748
Output is printed to stderr.
4849
4950
OPTIONS:
50-
-a, --activity-index <activity-index>
51+
-a, --activity-index <activity-index>
5152
The index of the activity to display data about
52-
53+
5354
By default, the last activity will be displayed. The index can be retrieved from other dcli apps, such as
5455
dcliah, or directly from the sqlite datastore.
55-
-k, --api-key <api-key>
56+
-k, --api-key <api-key>
5657
API key from Bungie required for some actions.
57-
58+
5859
If specified the key will be passed to all Destiny API calls.
59-
60+
6061
You can obtain a key from https://www.bungie.net/en/Application [env:
6162
DESTINY_API_KEY=8eacb6527ea648fbbd8106990231c21c]
62-
-C, --class <character-class-selection>
63+
-C, --class <character-class-selection>
6364
Character class to retrieve data for
64-
65+
6566
Valid values include hunter, titan, warlock, last_active and all. [default: last_active]
66-
-D, --data-dir <data-dir>
67+
-D, --data-dir <data-dir>
6768
Directory where Destiny 2 manifest and activity database files are stored. (optional)
68-
69+
6970
This will normally be downloaded using the dclim tool, and uses a system appropriate directory by default.
70-
-M, --mode <mode>
71+
-M, --mode <mode>
7172
Activity mode from which to return last activity
72-
73+
7374
Supported values are all_pvp (default), control, clash, elimination, mayhem, iron_banner, all_private,
7475
rumble, pvp_competitive, quickplay and trials_of_osiris.
75-
76+
7677
Addition values available are crimsom_doubles, supremacy, survival, countdown, all_doubles, doubles,
77-
private_clash, private_control, private_survival, private_rumble, showdown, lockdown, scorched,
78+
private_clash, private_control, private_survival, private_rumble, showdown, lockdown, scorched, rift, iron_banner_rift
7879
scorched_team, breakthrough, clash_quickplay, trials_of_the_nine [default: all_pvp]
79-
-n, --name <name>
80+
-n, --name <name>
8081
Bungie name for player
81-
82+
8283
Name must be in the format of NAME#CODE. Example: foo#3280 You can find your name in game, or on Bungie's
8384
site at: https://www.bungie.net/7/en/User/Account/IdentitySettings
84-
-w, --weapon-count <weapon-count>
85+
-w, --weapon-count <weapon-count>
8586
The number of weapons to display details for [default: 5]
8687
```
8788

89+
| ARGUMENT | OPTIONS |
90+
| -------- | --------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- |
91+
| --mode | all_pvp (default), control, clash, elimination, mayhem, iron_banner, all_private, rumble, pvp_competitive, quickplay and trials_of_osiris, crimsom_doubles, supremacy, survival, countdown, all_doubles, doubles private_clash, private_control, private_survival, private_rumble, showdown, lockdown, scorched, rift, iron_banner_rift, scorched_team, breakthrough, clash_quickplay, trials_of_the_nine |
8892

89-
| ARGUMENT | OPTIONS |
90-
|---|---|
91-
| --mode | all_pvp (default), control, clash, elimination, mayhem, iron_banner, all_private, rumble, pvp_competitive, quickplay and trials_of_osiris, crimsom_doubles, supremacy, survival, countdown, all_doubles, doubles private_clash, private_control, private_survival, private_rumble, showdown, lockdown, scorched, scorched_team, breakthrough, clash_quickplay, trials_of_the_nine |
92-
9393
Manifest can be downloaded and synced with from [dclim](https://github.com/mikechambers/dcli/tree/main/src/dclim).
9494

9595
Activity data store can be created and synced seperately using [dclisync](https://github.com/mikechambers/dcli/tree/main/src/dclisync).
9696

97-
**NOTE** : Currently, due to a [bug](https://github.com/Bungie-net/api/issues/1386) in the Destiny 2 API, you will only get results for private matches when specifying *all_private*. The other options are still included in case the bug is fixed. If viewing private match stats is important to you, please leave a comment [here](https://github.com/mikechambers/dcli/issues/10).
97+
**NOTE** : Currently, due to a [bug](https://github.com/Bungie-net/api/issues/1386) in the Destiny 2 API, you will only get results for private matches when specifying _all_private_. The other options are still included in case the bug is fixed. If viewing private match stats is important to you, please leave a comment [here](https://github.com/mikechambers/dcli/issues/10).
9898

9999
### Examples
100100

@@ -110,7 +110,7 @@ $ dcliad --name mesh#3230
110110
$ dcliad --name mesh#3230 --mode iron_banner --class hunter
111111
```
112112

113-
#### View details for last activity played displaying extended details
113+
#### View details for last activity played displaying extended details
114114

115115
```
116116
$ dcliad --name mesh#3230 --details
@@ -128,7 +128,6 @@ If you have any questions, feature requests, need help, are running into issues,
128128

129129
You can also log bugs and features requests on the [issues page](https://github.com/mikechambers/dcli/issues).
130130

131-
132131
## Compiling
133132

134133
This utility is written and compiled in [Rust](https://www.rust-lang.org/).
@@ -141,4 +140,4 @@ To compile, switch to the `src/` directory and run:
141140
$ cargo build --release
142141
```
143142

144-
which will place the compiled tools in *src/target/release*
143+
which will place the compiled tools in _src/target/release_

src/dcliad/src/main.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -515,7 +515,7 @@ struct Opt {
515515
///
516516
/// Addition values available are crimsom_doubles, supremacy, survival,
517517
/// countdown, all_doubles, doubles, private_clash, private_control,
518-
/// private_survival, private_rumble, showdown, lockdown,
518+
/// private_survival, private_rumble, showdown, lockdown, iron_banner_rift, rift,
519519
/// scorched, scorched_team, breakthrough, clash_quickplay, trials_of_the_nine
520520
#[structopt(long = "mode", short = "M",
521521
parse(try_from_str=parse_and_validate_mode), default_value = "all_pvp")]

src/dcliah/Cargo.toml

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,8 @@
11
[package]
22
name = "dcliah"
33
#version
4-
version = "0.8.0"
4+
#version
5+
version = "0.8.2"
56
authors = ["Mike Chambers <mikechambers@gmail.com>"]
67
edition = "2018"
78
description = "Command line tool for viewing Destiny 2 activity history."

0 commit comments

Comments
 (0)