frostfs-node/cmd/neofs-adm/internal/modules
Leonard Lyubich 579c3717a5 [#979] adm/subnet: Inherit pre-run functions in child commands
Cobra commands don't call `PreRun` functions on parent by default. We
need to do it in `subnet` command of admin utility in order to inherit
viper bindings.

Add `inheritPreRun` function which makes sub-commands to call `PreRun`
functions before its own `PreRun`.

Signed-off-by: Leonard Lyubich <leonard@nspcc.ru>
2021-12-01 17:31:04 +03:00
..
config [#927] neofs-adm: provide container alias fee on deploy 2021-10-19 17:47:29 +03:00
morph [#979] adm/subnet: Inherit pre-run functions in child commands 2021-12-01 17:31:04 +03:00
root.go [#683] cmd/neofs-adm: Add CLI flags for morph commands 2021-07-13 11:29:39 +03:00