Comments (2)
It looks like hjson -j
without a file parameter uses the standard input as input, see
Line 57 in c307adb
So exiting with 1 would break this feature.
Maybe the feature should be changed to take standard input only when something like -
or --
is given as parameter? Would be a breaking change though. Maybe something for v4.0.0?
from hjson-go.
Reading stdin when no file was specified is a common behavior in command line tools, so that text can be piped to them. See e.g. the tool sed.
from hjson-go.
Related Issues (20)
- Unmarshal panics if passed nil interface
- Marshal panics if comment-like numerical constant is passed
- Includes trailing comma character in unquoted list items HOT 1
- Trailing spaces in Marshal output
- add go mod support HOT 2
- Support comments marshaling HOT 1
- Unmashal to struct HOT 3
- newline HOT 1
- marshal an object with not export self pointer reference will run forever HOT 4
- support marshal net.ParseIP(`127.0.0.1`) to 127.0.0.1 HOT 3
- can not unmarshal obj from marshal result with string "0\r'" HOT 3
- module path must match major version HOT 3
- need an option to preserve source file key order HOT 12
- Preserve comments on source file HOT 3
- "Unmarshal to structs" example in readme doesn't work HOT 2
- Error with UnmashalText type with null value in list HOT 3
- Easy way to unmarshal to struct without assertions? HOT 4
- homebrew?
- Unicode escape in encoder HOT 3
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from hjson-go.