hippius 0.2.14__tar.gz → 0.2.15__tar.gz
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- {hippius-0.2.14 → hippius-0.2.15}/PKG-INFO +1 -1
- {hippius-0.2.14 → hippius-0.2.15}/hippius_sdk/__init__.py +1 -1
- {hippius-0.2.14 → hippius-0.2.15}/hippius_sdk/cli.py +1 -1
- {hippius-0.2.14 → hippius-0.2.15}/hippius_sdk/cli_parser.py +19 -0
- {hippius-0.2.14 → hippius-0.2.15}/pyproject.toml +1 -1
- {hippius-0.2.14 → hippius-0.2.15}/README.md +0 -0
- {hippius-0.2.14 → hippius-0.2.15}/hippius_sdk/cli_assets.py +0 -0
- {hippius-0.2.14 → hippius-0.2.15}/hippius_sdk/cli_handlers.py +0 -0
- {hippius-0.2.14 → hippius-0.2.15}/hippius_sdk/cli_rich.py +0 -0
- {hippius-0.2.14 → hippius-0.2.15}/hippius_sdk/client.py +0 -0
- {hippius-0.2.14 → hippius-0.2.15}/hippius_sdk/config.py +0 -0
- {hippius-0.2.14 → hippius-0.2.15}/hippius_sdk/errors.py +0 -0
- {hippius-0.2.14 → hippius-0.2.15}/hippius_sdk/ipfs.py +0 -0
- {hippius-0.2.14 → hippius-0.2.15}/hippius_sdk/ipfs_core.py +0 -0
- {hippius-0.2.14 → hippius-0.2.15}/hippius_sdk/substrate.py +0 -0
- {hippius-0.2.14 → hippius-0.2.15}/hippius_sdk/utils.py +0 -0
@@ -34,6 +34,9 @@ examples:
|
|
34
34
|
# Store a file
|
35
35
|
hippius store example.txt
|
36
36
|
|
37
|
+
# Add a file (alias for store)
|
38
|
+
hippius add example.txt
|
39
|
+
|
37
40
|
# Store a directory
|
38
41
|
hippius store-dir ./my_directory
|
39
42
|
|
@@ -214,6 +217,22 @@ def add_storage_commands(subparsers):
|
|
214
217
|
help="Don't publish file to IPFS or store on the blockchain (local only)",
|
215
218
|
)
|
216
219
|
|
220
|
+
# Add command (alias for store)
|
221
|
+
add_parser = subparsers.add_parser(
|
222
|
+
"add", help="Upload a file to IPFS and store it on Substrate (alias for 'store')"
|
223
|
+
)
|
224
|
+
add_parser.add_argument("file_path", help="Path to file to upload")
|
225
|
+
add_parser.add_argument(
|
226
|
+
"--publish",
|
227
|
+
action="store_true",
|
228
|
+
help="Publish file to IPFS and store on the blockchain (default)",
|
229
|
+
)
|
230
|
+
add_parser.add_argument(
|
231
|
+
"--no-publish",
|
232
|
+
action="store_true",
|
233
|
+
help="Don't publish file to IPFS or store on the blockchain (local only)",
|
234
|
+
)
|
235
|
+
|
217
236
|
# Store directory command
|
218
237
|
store_dir_parser = subparsers.add_parser(
|
219
238
|
"store-dir", help="Upload a directory to IPFS and store all files on Substrate"
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|