Skip to content

Commit

Permalink
Rename mobile-coin-address to mobilecoin-address.
Browse files Browse the repository at this point in the history
  • Loading branch information
christian-oudard committed Nov 28, 2024
1 parent 277652e commit ceeda8c
Show file tree
Hide file tree
Showing 5 changed files with 8 additions and 8 deletions.
4 changes: 2 additions & 2 deletions client/src/cli.rs
Original file line number Diff line number Diff line change
Expand Up @@ -413,8 +413,8 @@ pub enum CliCommands {
#[arg(long = "about-emoji")]
about_emoji: Option<String>,

#[arg(long = "mobile-coin-address")]
mobile_coin_address: Option<String>,
#[arg(long = "mobilecoin-address")]
mobilecoin_address: Option<String>,

#[arg(long)]
avatar: Option<String>,
Expand Down
4 changes: 2 additions & 2 deletions client/src/main.rs
Original file line number Diff line number Diff line change
Expand Up @@ -371,7 +371,7 @@ async fn handle_command(
family_name,
about,
about_emoji,
mobile_coin_address,
mobilecoin_address,
avatar,
remove_avatar,
} => {
Expand All @@ -382,7 +382,7 @@ async fn handle_command(
family_name,
about,
about_emoji,
mobile_coin_address,
mobilecoin_address,
avatar,
remove_avatar,
)
Expand Down
2 changes: 1 addition & 1 deletion man/signal-cli.1.adoc
Original file line number Diff line number Diff line change
Expand Up @@ -651,7 +651,7 @@ Path to the new avatar image file.
*--remove-avatar*::
Remove the avatar

*--mobile-coin-address*::
*--mobilecoin-address*::
New MobileCoin address (Base64 encoded public address)

=== updateContact
Expand Down
2 changes: 1 addition & 1 deletion run_tests.sh
Original file line number Diff line number Diff line change
Expand Up @@ -209,7 +209,7 @@ for OUTPUT in "plain-text" "json"; do
done

## Profile
run_main -a "$NUMBER_1" updateProfile --given-name=GIVEN --family-name=FAMILY --about=ABOUT --about-emoji=EMOJI --avatar=LICENSE --mobile-coin-address="YWJjCg=="
run_main -a "$NUMBER_1" updateProfile --given-name=GIVEN --family-name=FAMILY --about=ABOUT --about-emoji=EMOJI --avatar=LICENSE --mobilecoin-address="YWJjCg=="

## Provisioning
link "$NUMBER_1"
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -27,7 +27,7 @@ public void attachToSubparser(final Subparser subparser) {
subparser.addArgument("--family-name").help("New profile family name (optional)");
subparser.addArgument("--about").help("New profile about text");
subparser.addArgument("--about-emoji").help("New profile about emoji");
subparser.addArgument("--mobile-coin-address").help("New MobileCoin address (Base64 encoded public address)");
subparser.addArgument("--mobilecoin-address").help("New MobileCoin address (Base64 encoded public address)");

final var avatarOptions = subparser.addMutuallyExclusiveGroup();
avatarOptions.addArgument("--avatar").help("Path to new profile avatar");
Expand All @@ -42,7 +42,7 @@ public void handleCommand(
var familyName = ns.getString("family-name");
var about = ns.getString("about");
var aboutEmoji = ns.getString("about-emoji");
var mobileCoinAddressString = ns.getString("mobile-coin-address");
var mobileCoinAddressString = ns.getString("mobilecoin-address");
var mobileCoinAddress = mobileCoinAddressString == null
? null
: Base64.getDecoder().decode(mobileCoinAddressString);
Expand Down

0 comments on commit ceeda8c

Please sign in to comment.