@@ -61,10 +61,7 @@ pub fn interactive_init() -> inquire::error::InquireResult<InitVars> {
6161
6262 let options = InitVars {
6363 flag_regex : {
64- //TODO:
65- // - also provide regex examples in help
66- // - is this even a good idea to have the user provide the regex
67- // - what kind of regex is being validated and accepted
64+ //TODO: what flavor of regex is being validated and accepted
6865 inquire:: Text :: new ( "Flag regex:" )
6966 . with_help_message ( "This regex will be used to validate the individual flags of your challenges later." )
7067 . with_placeholder ( example_values:: FLAG_REGEX )
@@ -101,7 +98,6 @@ pub fn interactive_init() -> inquire::error::InquireResult<InitVars> {
10198 . prompt ( ) ?
10299 } ,
103100
104- // TODO: would the cluster not use a token of some sort?
105101 registry_cluster_pass : {
106102 inquire:: Password :: new ( "Container registry 'cluster' password:" )
107103 . with_help_message ( "The password to the 'cluster' user account" )
@@ -126,7 +122,6 @@ pub fn interactive_init() -> inquire::error::InquireResult<InitVars> {
126122 . with_placeholder ( example_values:: POINTS_DIFFICULTY )
127123 . prompt ( ) ?
128124 } ,
129- // TODO: support static-point challenges
130125 min : {
131126 inquire:: CustomType :: < u64 > :: new ( "Minimum points:" )
132127 . with_error_message ( "Please type a valid number." ) // default parser calls std::u64::from_str
@@ -310,7 +305,7 @@ pub fn blank_init() -> InitVars {
310305
311306pub fn example_init ( ) -> InitVars {
312307 return InitVars {
313- flag_regex : String :: from ( example_values:: FLAG_REGEX ) , // TODO: do that wildcard in the most common regex flavor since Rust regex supports multiple styles
308+ flag_regex : String :: from ( example_values:: FLAG_REGEX ) ,
314309 registry_domain : String :: from ( example_values:: REGISTRY_DOMAIN ) ,
315310 registry_build_user : String :: from ( example_values:: REGISTRY_BUILD_USER ) ,
316311 registry_build_pass : String :: from ( example_values:: REGISTRY_BUILD_PASS ) ,
0 commit comments