[#1] Fix naming in FrostFS CLI help output

Signed-off-by: Alex Vanin <a.vanin@yadro.com>
This commit is contained in:
Alexey Vanin 2023-01-27 13:44:39 +03:00 committed by fyrchik
parent 406ff1360f
commit d31d8c5335
18 changed files with 35 additions and 35 deletions

View file

@ -15,8 +15,8 @@ import (
var objectDelCmd = &cobra.Command{
Use: "delete",
Aliases: []string{"del"},
Short: "Delete object from NeoFS",
Long: "Delete object from NeoFS",
Short: "Delete object from FrostFS",
Long: "Delete object from FrostFS",
Run: deleteObject,
}

View file

@ -19,8 +19,8 @@ import (
var objectGetCmd = &cobra.Command{
Use: "get",
Short: "Get object from NeoFS",
Long: "Get object from NeoFS",
Short: "Get object from FrostFS",
Long: "Get object from FrostFS",
Run: getObject,
}
@ -115,7 +115,7 @@ func getObject(cmd *cobra.Command, _ []string) {
if binary {
objToStore := res.Header()
//TODO(@acid-ant): #1932 Use streams to marshal/unmarshal payload
// TODO(@acid-ant): #1932 Use streams to marshal/unmarshal payload
objToStore.SetPayload(payloadBuffer.Bytes())
objBytes, err := objToStore.Marshal()
common.ExitOnErr(cmd, "", err)

View file

@ -31,8 +31,8 @@ var putExpiredOn uint64
var objectPutCmd = &cobra.Command{
Use: "put",
Short: "Put object to NeoFS",
Long: "Put object to NeoFS",
Short: "Put object to FrostFS",
Long: "Put object to FrostFS",
Run: putObject,
}
@ -82,7 +82,7 @@ func putObject(cmd *cobra.Command, _ []string) {
buf, err := os.ReadFile(filename)
common.ExitOnErr(cmd, "unable to read given file: %w", err)
objTemp := object.New()
//TODO(@acid-ant): #1932 Use streams to marshal/unmarshal payload
// TODO(@acid-ant): #1932 Use streams to marshal/unmarshal payload
common.ExitOnErr(cmd, "can't unmarshal object from given file: %w", objTemp.Unmarshal(buf))
payloadReader = bytes.NewReader(objTemp.Payload())
cnr, _ = objTemp.ContainerID()