Skip to content

Commit 9fd4984

Browse files
authored
Merge pull request #278 from jpogran/update-bolt-schema-2.30.0
(maint) Update Bolt schema to 2.30.0
2 parents 7ffee57 + 9d37bf8 commit 9fd4984

File tree

9 files changed

+10
-7
lines changed

9 files changed

+10
-7
lines changed

lib/puppet-languageserver/static_data/bolt-boltlib.json

Lines changed: 1 addition & 1 deletion
Large diffs are not rendered by default.
Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1 +1 @@
1-
{"functions":[{"key":"canary::merge","calling_source":null,"source":null,"line":null,"char":null,"length":null,"doc":"Merges two ResultSets into a new ResultSet","function_version":4,"signatures":[{"key":"canary::merge(ResultSet $merger, ResultSet $mergee)","doc":"Merges two ResultSets into a new ResultSet","return_types":["Any"],"parameters":[{"name":"merger","doc":"","types":["ResultSet"],"signature_key_offset":24,"signature_key_length":7},{"name":"mergee","doc":"","types":["ResultSet"],"signature_key_offset":43,"signature_key_length":7}]}]},{"key":"canary::random_split","calling_source":null,"source":null,"line":null,"char":null,"length":null,"doc":"Splits an array into two groups, where the 1st group is a randomly selected\nsample of the input (of the specified size) and the 2nd group is the remainder.\n\nThis function takes 2 parameters:\n* The array to split (Array)\n* The number of items to sample from the array (Integer)\n\nReturns an array of [<sample>, <remainder>].","function_version":4,"signatures":[{"key":"canary::random_split(Array $arr, Integer $size)","doc":"Splits an array into two groups, where the 1st group is a randomly selected\nsample of the input (of the specified size) and the 2nd group is the remainder.\n\nThis function takes 2 parameters:\n* The array to split (Array)\n* The number of items to sample from the array (Integer)\n\nReturns an array of [<sample>, <remainder>].","return_types":["Any"],"parameters":[{"name":"arr","doc":"","types":["Array"],"signature_key_offset":27,"signature_key_length":4},{"name":"size","doc":"","types":["Integer"],"signature_key_offset":41,"signature_key_length":5}]}]},{"key":"canary::skip","calling_source":null,"source":null,"line":null,"char":null,"length":null,"doc":"Returns a ResultSet with canary/skipped-target errors for each Target provided.\n\nThis function takes a single parameter:\n* List of targets (Array[Variant[Target,String]])\n\nReturns a ResultSet.","function_version":4,"signatures":[{"key":"canary::skip(Array[Variant[Target,String]] $targets)","doc":"Returns a ResultSet with canary/skipped-target errors for each Target provided.\n\nThis function takes a single parameter:\n* List of targets (Array[Variant[Target,String]])\n\nReturns a ResultSet.","return_types":["Any"],"parameters":[{"name":"targets","doc":"","types":["Array[Variant[Target,String]]"],"signature_key_offset":43,"signature_key_length":8}]}]}]}
1+
{"functions":[{"key":"canary::random_split","calling_source":null,"source":null,"line":null,"char":null,"length":null,"doc":"Splits an array into two groups, where the 1st group is a randomly selected\nsample of the input (of the specified size) and the 2nd group is the remainder.\n\nThis function takes 2 parameters:\n* The array to split (Array)\n* The number of items to sample from the array (Integer)\n\nReturns an array of [<sample>, <remainder>].","function_version":4,"signatures":[{"key":"canary::random_split(Array $arr, Integer $size)","doc":"Splits an array into two groups, where the 1st group is a randomly selected\nsample of the input (of the specified size) and the 2nd group is the remainder.\n\nThis function takes 2 parameters:\n* The array to split (Array)\n* The number of items to sample from the array (Integer)\n\nReturns an array of [<sample>, <remainder>].","return_types":["Any"],"parameters":[{"name":"arr","doc":"","types":["Array"],"signature_key_offset":27,"signature_key_length":4},{"name":"size","doc":"","types":["Integer"],"signature_key_offset":41,"signature_key_length":5}]}]},{"key":"canary::skip","calling_source":null,"source":null,"line":null,"char":null,"length":null,"doc":"Returns a ResultSet with canary/skipped-target errors for each Target provided.\n\nThis function takes a single parameter:\n* List of targets (Array[Variant[Target,String]])\n\nReturns a ResultSet.","function_version":4,"signatures":[{"key":"canary::skip(Array[Variant[Target,String]] $targets)","doc":"Returns a ResultSet with canary/skipped-target errors for each Target provided.\n\nThis function takes a single parameter:\n* List of targets (Array[Variant[Target,String]])\n\nReturns a ResultSet.","return_types":["Any"],"parameters":[{"name":"targets","doc":"","types":["Array[Variant[Target,String]]"],"signature_key_offset":43,"signature_key_length":8}]}]},{"key":"canary::merge","calling_source":null,"source":null,"line":null,"char":null,"length":null,"doc":"Merges two ResultSets into a new ResultSet","function_version":4,"signatures":[{"key":"canary::merge(ResultSet $merger, ResultSet $mergee)","doc":"Merges two ResultSets into a new ResultSet","return_types":["Any"],"parameters":[{"name":"merger","doc":"","types":["ResultSet"],"signature_key_offset":24,"signature_key_length":7},{"name":"mergee","doc":"","types":["ResultSet"],"signature_key_offset":43,"signature_key_length":7}]}]}]}
Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1 +1 @@
1-
{"functions":[{"key":"ctrl::do_until","calling_source":null,"source":null,"line":null,"char":null,"length":null,"doc":"Repeat the block until it returns a truthy value. Returns the value.","function_version":4,"signatures":[{"key":"ctrl::do_until(Optional[Hash[String[1], Any]] $options, Callable &$block)","doc":"Repeat the block until it returns a truthy value. Returns the value.","return_types":["Any"],"parameters":[{"name":"options","doc":"A hash of additional options.","types":["Optional[Hash[String[1], Any]]"],"signature_key_offset":46,"signature_key_length":8},{"name":"&block","doc":"","types":["Callable"],"signature_key_offset":65,"signature_key_length":7}]}]},{"key":"ctrl::sleep","calling_source":null,"source":null,"line":null,"char":null,"length":null,"doc":"Sleeps for specified number of seconds.","function_version":4,"signatures":[{"key":"ctrl::sleep(Numeric $period)","doc":"Sleeps for specified number of seconds.","return_types":["Undef"],"parameters":[{"name":"period","doc":"Time to sleep (in seconds)","types":["Numeric"],"signature_key_offset":20,"signature_key_length":7}]}]}]}
1+
{"functions":[{"key":"ctrl::sleep","calling_source":null,"source":null,"line":null,"char":null,"length":null,"doc":"Sleeps for specified number of seconds.","function_version":4,"signatures":[{"key":"ctrl::sleep(Numeric $period)","doc":"Sleeps for specified number of seconds.","return_types":["Undef"],"parameters":[{"name":"period","doc":"Time to sleep (in seconds)","types":["Numeric"],"signature_key_offset":20,"signature_key_length":7}]}]},{"key":"ctrl::do_until","calling_source":null,"source":null,"line":null,"char":null,"length":null,"doc":"Repeat the block until it returns a truthy value. Returns the value.","function_version":4,"signatures":[{"key":"ctrl::do_until(Optional[Hash[String[1], Any]] $options, Callable &$block)","doc":"Repeat the block until it returns a truthy value. Returns the value.","return_types":["Any"],"parameters":[{"name":"options","doc":"A hash of additional options.","types":["Optional[Hash[String[1], Any]]"],"signature_key_offset":46,"signature_key_length":8},{"name":"&block","doc":"","types":["Callable"],"signature_key_offset":65,"signature_key_length":7}]}]}]}
Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
{"functions":[{"key":"dir::children","calling_source":null,"source":null,"line":null,"char":null,"length":null,"doc":"Returns an array containing all of the filenames except for \".\" and \"..\" in the given directory.","function_version":4,"signatures":[{"key":"dir::children(String $dirname)","doc":"Returns an array containing all of the filenames except for \".\" and \"..\" in the given directory.","return_types":["Array"],"parameters":[{"name":"dirname","doc":"Absolute path or Puppet module name.","types":["String"],"signature_key_offset":21,"signature_key_length":8}]}]}]}
Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1 +1 @@
1-
{"functions":[{"key":"file::exists","calling_source":null,"source":null,"line":null,"char":null,"length":null,"doc":"Check if a file exists.","function_version":4,"signatures":[{"key":"file::exists(String $filename)","doc":"Check if a file exists.","return_types":["Boolean"],"parameters":[{"name":"filename","doc":"Absolute path or Puppet file path.","types":["String"],"signature_key_offset":20,"signature_key_length":9}]}]},{"key":"file::join","calling_source":null,"source":null,"line":null,"char":null,"length":null,"doc":"Join file paths.","function_version":4,"signatures":[{"key":"file::join(String *$paths)","doc":"Join file paths.","return_types":["String"],"parameters":[{"name":"*paths","doc":"The paths to join.","types":["String"],"signature_key_offset":18,"signature_key_length":7}]}]},{"key":"file::read","calling_source":null,"source":null,"line":null,"char":null,"length":null,"doc":"Read a file and return its contents.","function_version":4,"signatures":[{"key":"file::read(String $filename)","doc":"Read a file and return its contents.","return_types":["String"],"parameters":[{"name":"filename","doc":"Absolute path or Puppet file path.","types":["String"],"signature_key_offset":18,"signature_key_length":9}]}]},{"key":"file::readable","calling_source":null,"source":null,"line":null,"char":null,"length":null,"doc":"Check if a file is readable.","function_version":4,"signatures":[{"key":"file::readable(String $filename)","doc":"Check if a file is readable.","return_types":["Boolean"],"parameters":[{"name":"filename","doc":"Absolute path or Puppet file path.","types":["String"],"signature_key_offset":22,"signature_key_length":9}]}]},{"key":"file::write","calling_source":null,"source":null,"line":null,"char":null,"length":null,"doc":"Write a string to a file.","function_version":4,"signatures":[{"key":"file::write(String $filename, String $content)","doc":"Write a string to a file.","return_types":["Undef"],"parameters":[{"name":"filename","doc":"Absolute path.","types":["String"],"signature_key_offset":19,"signature_key_length":9},{"name":"content","doc":"File content to write.","types":["String"],"signature_key_offset":37,"signature_key_length":8}]}]}]}
1+
{"functions":[{"key":"file::read","calling_source":null,"source":null,"line":null,"char":null,"length":null,"doc":"Read a file on localhost and return its contents using ruby's `File.read`. This will\nonly read files on the machine you run Bolt on.","function_version":4,"signatures":[{"key":"file::read(String $filename)","doc":"Read a file on localhost and return its contents using ruby's `File.read`. This will\nonly read files on the machine you run Bolt on.","return_types":["String"],"parameters":[{"name":"filename","doc":"Absolute path or Puppet file path.","types":["String"],"signature_key_offset":18,"signature_key_length":9}]}]},{"key":"file::readable","calling_source":null,"source":null,"line":null,"char":null,"length":null,"doc":"Check if a local file is readable using Puppet's\n`Puppet::Parser::Files.find_file()` function. This will only check files on the\nmachine you run Bolt on.","function_version":4,"signatures":[{"key":"file::readable(String $filename)","doc":"Check if a local file is readable using Puppet's\n`Puppet::Parser::Files.find_file()` function. This will only check files on the\nmachine you run Bolt on.","return_types":["Boolean"],"parameters":[{"name":"filename","doc":"Absolute path or Puppet file path.","types":["String"],"signature_key_offset":22,"signature_key_length":9}]}]},{"key":"file::exists","calling_source":null,"source":null,"line":null,"char":null,"length":null,"doc":"Check if a local file exists using Puppet's\n`Puppet::Parser::Files.find_file()` function. This will only check files that\nare on the machine Bolt is run on.","function_version":4,"signatures":[{"key":"file::exists(String $filename)","doc":"Check if a local file exists using Puppet's\n`Puppet::Parser::Files.find_file()` function. This will only check files that\nare on the machine Bolt is run on.","return_types":["Boolean"],"parameters":[{"name":"filename","doc":"Absolute path or Puppet file path.","types":["String"],"signature_key_offset":20,"signature_key_length":9}]}]},{"key":"file::join","calling_source":null,"source":null,"line":null,"char":null,"length":null,"doc":"Join file paths using ruby's `File.join()` function.","function_version":4,"signatures":[{"key":"file::join(String *$paths)","doc":"Join file paths using ruby's `File.join()` function.","return_types":["String"],"parameters":[{"name":"*paths","doc":"The paths to join.","types":["String"],"signature_key_offset":18,"signature_key_length":7}]}]},{"key":"file::write","calling_source":null,"source":null,"line":null,"char":null,"length":null,"doc":"Write a string to a file on localhost using ruby's `File.write`. This will\nonly write files to the machine you run Bolt on. Use `write_file()` to write\nto remote targets.","function_version":4,"signatures":[{"key":"file::write(String $filename, String $content)","doc":"Write a string to a file on localhost using ruby's `File.write`. This will\nonly write files to the machine you run Bolt on. Use `write_file()` to write\nto remote targets.","return_types":["Undef"],"parameters":[{"name":"filename","doc":"Absolute path.","types":["String"],"signature_key_offset":19,"signature_key_length":9},{"name":"content","doc":"File content to write.","types":["String"],"signature_key_offset":37,"signature_key_length":8}]}]}]}
Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1 +1 @@
1-
{"functions":[{"key":"out::message","calling_source":null,"source":null,"line":null,"char":null,"length":null,"doc":"Output a message for the user.\n\nThis will print a message to stdout when using the human output format,\nand print to stderr when using the json output format\n\n> **Note:** Not available in apply block","function_version":4,"signatures":[{"key":"out::message(String $message)","doc":"Output a message for the user.\n\nThis will print a message to stdout when using the human output format,\nand print to stderr when using the json output format\n\n> **Note:** Not available in apply block","return_types":["Undef"],"parameters":[{"name":"message","doc":"The message to output.","types":["String"],"signature_key_offset":20,"signature_key_length":8}]}]}]}
1+
{"functions":[{"key":"out::message","calling_source":null,"source":null,"line":null,"char":null,"length":null,"doc":"Output a message for the user.\n\nThis will print a message to stdout when using the human output format,\nand print to stderr when using the json output format\n\n> **Note:** Not available in apply block","function_version":4,"signatures":[{"key":"out::message(Any $message)","doc":"Output a message for the user.\n\nThis will print a message to stdout when using the human output format,\nand print to stderr when using the json output format\n\n> **Note:** Not available in apply block","return_types":["Undef"],"parameters":[{"name":"message","doc":"The message to output.","types":["Any"],"signature_key_offset":17,"signature_key_length":8}]}]}]}
Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
{"functions":[{"key":"prompt","calling_source":null,"source":null,"line":null,"char":null,"length":null,"doc":"Display a prompt and wait for a response.\n\n> **Note:** Not available in apply block","function_version":4,"signatures":[{"key":"prompt(String $prompt, Optional[Hash[String[1], Any]] $options)","doc":"Display a prompt and wait for a response.\n\n> **Note:** Not available in apply block","return_types":["Variant[String, Sensitive]"],"parameters":[{"name":"prompt","doc":"The prompt to display.","types":["String"],"signature_key_offset":14,"signature_key_length":7},{"name":"options","doc":"A hash of additional options.","types":["Optional[Hash[String[1], Any]]"],"signature_key_offset":54,"signature_key_length":8}]}]}]}
Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
{}

tools/bolt_introspect/README.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -22,5 +22,5 @@ This should regenerate all of the bolt files in `/lib/puppet-languageserver/stat
2222
2323
| Component | Version |
2424
| --------------- | ------- |
25-
| Bolt | 2.3.1 |
26-
| Editor Services | 0.25.0 |
25+
| Bolt | 2.30.0 |
26+
| Editor Services | 1.0.0 |

0 commit comments

Comments
 (0)