Open logicminds opened 8 years ago
When the . operator is used to signify that the result of the previous line the repl does not seem to be aware of the previous operation so puppet concludes the code is a syntax error.
.
Example:
1:>> $var1 = [1,2,3,4] => [ [0] 1, [1] 2, [2] 3, [3] 4 ] 2:>> .map | $num | { notice($num) } => Syntax error at '.' at line 1:1
This is happening because the parser that checks for multiline is not aware of the scope.
issue is here: https://github.com/nwops/puppet-repl/blob/master/lib/puppet-repl/cli.rb#L184
When the
.
operator is used to signify that the result of the previous line the repl does not seem to be aware of the previous operation so puppet concludes the code is a syntax error.Example:
This is happening because the parser that checks for multiline is not aware of the scope.