scout

Reading and writing in JSON, Plist, YAML and XML data made simple when the data format is not known at build time. Swift library and command-line tool.

MIT License

Stars
127
Committers
3

Bot releases are hidden (Show)

scout - Xml dictionary and array output

Published by ABridoux over 4 years ago

Fixed

  • PathExplorerXml string value not empty because of new line.
scout - CLT read command crash when other type the, string

Published by ABridoux over 4 years ago

Fixed

  • CLT read command when other type than string was not working
scout -

Published by ABridoux over 4 years ago

Added

  • License
  • CLT: output a dictionary or an array rather than return an error
  • Json: backslashes removed when outputing the string
scout - Root nested arrays

Published by ABridoux over 4 years ago

Fixed

  • Root element with nested arrays: [0][2][1].firstKey
scout - Better subscript error description. CLT type enforcing.

Published by ABridoux over 4 years ago

Added

  • Reading path for subscript errors. A subscript error now shows precisely where the error occurs.
  • CLT force type. Possibility to try to force a type when setting/adding a value. ~25~ for reals, <25> for integers and ?Yes? for booleans.
  • Possibility to initialise a boolean with string values like 'y", "NO", "t", "True"...
  • PathExplorer generic get functions to try to convert to a KeyAllowedType type.
  • The newly added PKG and the Zip files are notarized

Fixed

  • It was not possible to initialise a Path starting with an array subscript like '[1].key1.key2'
scout - Added nested array support and CLT modify option

Published by ABridoux over 4 years ago

Added

  • Github test action
  • Nested array support: array[0][2]...
  • CLT [-m | --modify] option to read and write the data from/to the same file

Fixed

  • Xml value adding when key already existed was not working
scout - Several setting and adding actions bug fixes

Published by ABridoux over 4 years ago

Added

  • PathExplorer format value to indicate the data format
  • Playground files to try the CLT
  • Get a last element in an array at the end with the negative index
  • Setting a value in an array at the end with the negative index

Fixed

  • Custom separator to initialise a path now working
  • Initialise and convert to aKeyAllowedTypeKey now uses CustomStringConvertible to try the String option
  • Negative index to initialise a path now working
  • Array value setting was not working if the value was not a string
  • Inserting a value in an empty array was possible
  • Inserting a value in a Xml only worked when the element was the root element
scout -

Published by ABridoux over 4 years ago

Added

  • SwiftLint file to execute SwiftLint analysis
  • CLT brackets for key names containing the separator

Changed

  • CLT path to read the values: the separator was changed from -> to .
  • CLT path to set the values: the separator was changed from : to =
  • CLT array subscript. Removed the separator e.g. array.[index] to array[index]
scout -

Published by ABridoux over 4 years ago

Added

  • Possiblity to try to force the type of a value when setting or adding
  • Command-line tool options to force the string value
  • Command-line tool version command.
  • More in-line documentation
  • Readme instructions to use Homebrew

Changed

  • Refractored the PathExplorerSerialization and PahExplorerxml

Fixed

  • Command-line tool ""----input"" long option to specify a file input fixed to "--input"
scout - Hotfix: updated Makefile and Package.swift

Published by ABridoux over 4 years ago

scout - Instructions to download and use the executable

Published by ABridoux over 4 years ago

scout -

Published by ABridoux over 4 years ago

Fixed oversights.

scout -

Published by ABridoux over 4 years ago

CRUD operations with following formats: Json, Plist and Xml.