forked from TrueCloudLab/frostfs-node
[#1332] cli: Implement tree get-by-path
command
It is `TreeService.GetNodeByPath` method implementation. Signed-off-by: Pavel Karpy <carpawell@nspcc.ru>
This commit is contained in:
parent
2c02e66939
commit
3d8349d7f8
2 changed files with 105 additions and 0 deletions
|
@ -11,8 +11,10 @@ var Cmd = &cobra.Command{
|
|||
|
||||
func init() {
|
||||
Cmd.AddCommand(addCmd)
|
||||
Cmd.AddCommand(getByPathCmd)
|
||||
|
||||
initAddCmd()
|
||||
initGetByPathCmd()
|
||||
}
|
||||
|
||||
const (
|
||||
|
@ -21,6 +23,11 @@ const (
|
|||
parentIDFlagKey = "pid"
|
||||
|
||||
metaFlagKey = "meta"
|
||||
|
||||
pathFlagKey = "path"
|
||||
pathAttributeFlagKey = "pattr"
|
||||
|
||||
latestOnlyFlagKey = "latest"
|
||||
)
|
||||
|
||||
func initCTID(cmd *cobra.Command) {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue