Skip to content

Commit dce8328

Browse files
committed
Merge branch 'arshavir/NNS1-2261' into 'master'
feat(NNS1-2261): Add examples for `confirmation_text` and `restricted_countries` to SNS-CLI's `init-config-file new` sub-command This MR adds examples for `` and `` fields of the sns_init.yaml file. When running `sns-cli init-config-file new`, the user will observe the following in sns_init.yaml: ``` # SNS SWAP # # An optional text that swap participants should confirm before they may # participate in the swap. If the field is set, its value should be plain text # with at least 1 and at most 1,000 characters. # # Example: "Please confirm that 2+2=4" # confirmation_text: ~ # # # An optional set of countries that should not participate in the swap. If the # field is set, it must contain (upper case) ISO 3166-1 alpha-2 country codes. # # Example: ["CH", "FR"] # restricted_countries: ~ ``` Closes NNS1-2261 Closes NNS1-2261 See merge request dfinity-lab/public/ic!12605
2 parents fa310d8 + 7983535 commit dce8328

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

rs/sns/cli/src/init_config_file.rs

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -586,6 +586,8 @@ pub fn get_config_file_contents(sns_cli_init_config: SnsCliInitConfig) -> String
586586
# An optional text that swap participants should confirm before they may
587587
# participate in the swap. If the field is set, its value should be plain text
588588
# with at least 1 and at most 1,000 characters.
589+
#
590+
# Example: "Please confirm that 2+2=4"
589591
#"##
590592
.to_string(),
591593
),
@@ -595,6 +597,8 @@ pub fn get_config_file_contents(sns_cli_init_config: SnsCliInitConfig) -> String
595597
#
596598
# An optional set of countries that should not participate in the swap. If the
597599
# field is set, it must contain (upper case) ISO 3166-1 alpha-2 country codes.
600+
#
601+
# Example: ["CH", "FR"]
598602
#"##
599603
.to_string(),
600604
),

0 commit comments

Comments
 (0)