- Have `${DataDir}/bzzd.ipc` as IPC path default.
- Respect the `--datadir` flag.
- Keep only the global `--ipcpath` flag and drop the local `--ipcpath` flag
as flags might overwrite each other. (Note: before global `--ipcpath`
was ignored even if it was set)
fixes ethersphere#795
ArgsUsage:"swarm fs mount --ipcpath <path to bzzd.ipc> <manifest hash> <mount point>",
ArgsUsage:"swarm fs mount <manifest hash> <mount point>",
Description:"Mounts a Swarm manifest hash to a given mount point. This assumes you already have a Swarm node running locally. You must reference the correct path to your bzzd.ipc file",
Description:"Mounts a Swarm manifest hash to a given mount point. This assumes you already have a Swarm node running locally. You must reference the correct path to your bzzd.ipc file",
},
},
{
{
Action:unmount,
Action:unmount,
CustomHelpTemplate:helpTemplate,
CustomHelpTemplate:helpTemplate,
Name:"unmount",
Name:"unmount",
Flags:[]cli.Flag{utils.IPCPathFlag},
Usage:"unmount a swarmfs mount",
Usage:"unmount a swarmfs mount",
ArgsUsage:"swarm fs unmount --ipcpath <path to bzzd.ipc> <mount point>",
ArgsUsage:"swarm fs unmount <mount point>",
Description:"Unmounts a swarmfs mount residing at <mount point>. This assumes you already have a Swarm node running locally. You must reference the correct path to your bzzd.ipc file",
Description:"Unmounts a swarmfs mount residing at <mount point>. This assumes you already have a Swarm node running locally. You must reference the correct path to your bzzd.ipc file",
},
},
{
{
Action:listMounts,
Action:listMounts,
CustomHelpTemplate:helpTemplate,
CustomHelpTemplate:helpTemplate,
Name:"list",
Name:"list",
Flags:[]cli.Flag{utils.IPCPathFlag},
Usage:"list swarmfs mounts",
Usage:"list swarmfs mounts",
ArgsUsage:"swarm fs list --ipcpath <path to bzzd.ipc>",
ArgsUsage:"swarm fs list",
Description:"Lists all mounted swarmfs volumes. This assumes you already have a Swarm node running locally. You must reference the correct path to your bzzd.ipc file",
Description:"Lists all mounted swarmfs volumes. This assumes you already have a Swarm node running locally. You must reference the correct path to your bzzd.ipc file",
},
},
},
},
@ -70,7 +67,7 @@ var fsCommand = cli.Command{
funcmount(cliContext*cli.Context){
funcmount(cliContext*cli.Context){
args:=cliContext.Args()
args:=cliContext.Args()
iflen(args)<2{
iflen(args)<2{
utils.Fatalf("Usage: swarm fs mount --ipcpath <path to bzzd.ipc> <manifestHash> <file name>")
utils.Fatalf("Usage: swarm fs mount <manifestHash> <file name>")