[#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:
Pavel Karpy 2022-10-10 21:55:48 +03:00 committed by Pavel Karpy
parent 2c02e66939
commit 3d8349d7f8
2 changed files with 105 additions and 0 deletions

View file

@ -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) {