bash-bastion / bash-object Goto Github PK
View Code? Open in Web Editor NEWManipulate heterogenous data hierarchies in Bash.
Home Page: https://bash-bastion.github.io/bash-object/
License: Mozilla Public License 2.0
Manipulate heterogenous data hierarchies in Bash.
Home Page: https://bash-bastion.github.io/bash-object/
License: Mozilla Public License 2.0
Similar to mkdir
, it might be quite useful to have an option to automatically create parent objects. If an index is within the query, it should error (only creating objects, not arrays, should be supported)
This allows to set a value on the object hierarchy in the following conditions
Rename some of the variables created with -n
, so there aren't any recursive / name clashing when a variable name happens to be the same as the name of the variable that is its corresponding nameref
do something with 'is_index_of_array?' (do not allow for using index notation to get keys of objects)
# Ensure we can only get 'key_value' if we are accessing a key
# of the object/array we expect
To increase performance
Using variables like REPLIES
is now poor choice. Remove its usage
When there is a conflict object/array/string, print the whole object, array, or string and print where in the hierarchy it is located
The querytree parser is a bit primitive. It works, but it would be nice to be able to do [""]
for only part of the query tree (rather than requiring it for all elements). I don't like querytree="${querytree}."
. Rewrite the advanced parser, and parse character by character with an index, rather than using while IFS= read -rN1 char
. That way, lookahead peeks are free
When the length of the array is shorter than expected.
Does this already work with keys and objects?
Have some unset
-like subcommand comment to unset all virtual objects of a hierarchy, starting from any particular virtual object (primarily including the root object)
Don't use declare -p
- instead use ${var@a}
or ${var@A}
on supported Bash versions
This is blocked on integrating CI with relevant Bash versions
Right now, --pass-by-value
is compatible with the code, but is not yet immplemented
A declarative, efficient, and flexible JavaScript library for building user interfaces.
๐ Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. ๐๐๐
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google โค๏ธ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.