Skip to content

Ipfs object put from stdin #882

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 2 commits into from
Mar 7, 2015
Merged

Ipfs object put from stdin #882

merged 2 commits into from
Mar 7, 2015

Conversation

cryptix
Copy link
Contributor

@cryptix cryptix commented Mar 7, 2015

follow up to #811

@btc btc added the status/in-progress In progress label Mar 7, 2015
cmds.FileArg("data", true, false, "Data to be stored as a DAG object").EnableStdin(),
},
Options: []cmds.Option{
cmds.StringOption("inputenc", "Encoding type of input data, either \"protobuf\" or \"json\""),
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

was it not possible to read the already standard --enc flag? does the commands lib hide it away?

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I thought it would be nicer to have two flags, so you can define input and output encoding independently.

Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

ah, okay 👍

@jbenet
Copy link
Member

jbenet commented Mar 7, 2015

Awesome, LGTM!

jbenet added a commit that referenced this pull request Mar 7, 2015
Ipfs object put from stdin
@jbenet jbenet merged commit 276f471 into master Mar 7, 2015
@jbenet jbenet removed the status/in-progress In progress label Mar 7, 2015
@jbenet jbenet deleted the ipfsObject branch March 7, 2015 16:16
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants