nwops / puppet-debugger

A interactive live debugger and REPL for the puppet language
https://gitlab.com/puppet-debugger/puppet-debugger
MIT License
121 stars 11 forks source link

list datatypes #50

Closed logicminds closed 7 years ago

logicminds commented 7 years ago

scope.compiler.loaders.implementation_registry.instance_variable_get(:'@implementations_per_type_name').keys.find_all { |t| t !~ /::/ }

I bet it would be useful to list the data types

["Integer",
 "Float",
 "Numeric",
 "Iterable",
 "Iterator",
 "String",
 "Binary",
 "Sensitive",
 "Enum",
 "Boolean",
 "Pattern",
 "Regexp",
 "Data",
 "Array",
 "Hash",
 "Class",
 "Resource",
 "Collection",
 "Scalar",
 "CatalogEntry",
 "Undef",
 "NotUndef",
 "Default",
 "Any",
 "Variant",
 "Optional",
 "Runtime",
 "Type",
 "Tuple",
 "Struct",
 "Object",
 "TypeAlias",
 "TypeReference",
 "TypeSet",
 "Callable",
 "SemVer",
 "SemVerRange",
 "Timestamp",
 "Timespan"]