frostfs-node/cmd/neofs-adm/internal/modules/morph
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
..
internal [#979] adm: Add subnet-related commands 2021-12-01 17:31:04 +03:00
container.go *: replace neofs-api-go with neofs-sdk-go 2021-11-12 17:29:09 +03:00
download.go [#733] neofs-adm: read contracts on start 2021-11-01 15:17:18 +03:00
dump.go [#940] neofs-adm: print contract version in dump-hashes 2021-10-28 09:35:52 +03:00
epoch.go neofs-adm: use nnsResolveHash instead of custom code 2021-08-24 12:35:52 +03:00
generate.go [#758] cmd/neofs-adm: Implement command to refill storage node's GAS 2021-08-25 17:07:23 +03:00
generate_test.go [#684] neofs-adm: add labels to multisig accounts 2021-07-21 15:23:16 +03:00
initialize.go [#979] adm: Deploy missing contracts during updating 2021-12-01 17:31:04 +03:00
initialize_deploy.go [#979] adm: Register NNS domain of the deployed contracts 2021-12-01 17:31:04 +03:00
initialize_nns.go [#979] adm: Deploy missing contracts during updating 2021-12-01 17:31:04 +03:00
initialize_register.go [#733] neofs-adm: read contracts on start 2021-11-01 15:17:18 +03:00
initialize_roles.go [#732] neofs-adm: fetch single accounts during the initialization 2021-08-02 14:28:23 +03:00
initialize_transfer.go [#733] neofs-adm: read contracts on start 2021-11-01 15:17:18 +03:00
n3client.go [#927] neofs-adm: provide better error message if endpoint is missing 2021-10-19 17:47:29 +03:00
root.go [#979] adm: Add subnet-related commands 2021-12-01 17:31:04 +03:00
subnet.go [#979] adm/subnet: Inherit pre-run functions in child commands 2021-12-01 17:31:04 +03:00
update.go [#888] neofs-adm: deploy NNS contract first 2021-10-12 15:50:22 +03:00