Skip to content

Commit f475450

Browse files
committed
added 'object new' command
1 parent e8ac5d8 commit f475450

File tree

1 file changed

+9
-0
lines changed

1 file changed

+9
-0
lines changed

ipfsApi/client.py

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -85,6 +85,15 @@ def object_data(req, multihash, **kwargs):
8585
"""
8686
return req(multihash, **kwargs)
8787

88+
@ArgCommand('/object/new')
89+
def object_new(req, template=None, **kwargs):
90+
"""
91+
"""
92+
if template:
93+
return req(template, **kwargs)
94+
else:
95+
return req(**kwargs)
96+
8897
@ArgCommand('/object/links')
8998
def object_links(req, multihash, **kwargs):
9099
"""

0 commit comments

Comments
 (0)