[#1614] adm/nns: Add 'set-admin'
All checks were successful
DCO action / DCO (pull_request) Successful in 37s
Vulncheck / Vulncheck (pull_request) Successful in 52s
Tests and linters / Run gofumpt (pull_request) Successful in 1m19s
Build / Build Components (pull_request) Successful in 1m29s
Pre-commit hooks / Pre-commit (pull_request) Successful in 1m40s
Tests and linters / Staticcheck (pull_request) Successful in 2m12s
Tests and linters / Lint (pull_request) Successful in 3m2s
Tests and linters / Tests (pull_request) Successful in 4m42s
Tests and linters / Tests with -race (pull_request) Successful in 5m0s
Tests and linters / gopls check (pull_request) Successful in 5m19s
Vulncheck / Vulncheck (push) Successful in 59s
Tests and linters / Run gofumpt (push) Successful in 1m25s
Pre-commit hooks / Pre-commit (push) Successful in 1m33s
Build / Build Components (push) Successful in 2m4s
Tests and linters / Staticcheck (push) Successful in 2m22s
Tests and linters / Lint (push) Successful in 3m17s
OCI image / Build container images (push) Successful in 4m16s
Tests and linters / Tests (push) Successful in 4m45s
Tests and linters / gopls check (push) Successful in 5m35s
Tests and linters / Tests with -race (push) Successful in 5m38s
All checks were successful
DCO action / DCO (pull_request) Successful in 37s
Vulncheck / Vulncheck (pull_request) Successful in 52s
Tests and linters / Run gofumpt (pull_request) Successful in 1m19s
Build / Build Components (pull_request) Successful in 1m29s
Pre-commit hooks / Pre-commit (pull_request) Successful in 1m40s
Tests and linters / Staticcheck (pull_request) Successful in 2m12s
Tests and linters / Lint (pull_request) Successful in 3m2s
Tests and linters / Tests (pull_request) Successful in 4m42s
Tests and linters / Tests with -race (pull_request) Successful in 5m0s
Tests and linters / gopls check (pull_request) Successful in 5m19s
Vulncheck / Vulncheck (push) Successful in 59s
Tests and linters / Run gofumpt (push) Successful in 1m25s
Pre-commit hooks / Pre-commit (push) Successful in 1m33s
Build / Build Components (push) Successful in 2m4s
Tests and linters / Staticcheck (push) Successful in 2m22s
Tests and linters / Lint (push) Successful in 3m17s
OCI image / Build container images (push) Successful in 4m16s
Tests and linters / Tests (push) Successful in 4m45s
Tests and linters / gopls check (push) Successful in 5m35s
Tests and linters / Tests with -race (push) Successful in 5m38s
Signed-off-by: Alexander Chuprov <a.chuprov@yadro.com>
This commit is contained in:
parent
b2163ff44c
commit
304bee938b
4 changed files with 49 additions and 2 deletions
|
@ -109,6 +109,17 @@ var (
|
|||
},
|
||||
Run: delRecord,
|
||||
}
|
||||
setAdminCmd = &cobra.Command{
|
||||
Use: "set-admin",
|
||||
Short: "Sets admin for domain",
|
||||
PreRun: func(cmd *cobra.Command, _ []string) {
|
||||
_ = viper.BindPFlag(commonflags.EndpointFlag, cmd.Flags().Lookup(commonflags.EndpointFlag))
|
||||
_ = viper.BindPFlag(commonflags.AlphabetWalletsFlag, cmd.Flags().Lookup(commonflags.AlphabetWalletsFlag))
|
||||
_ = viper.BindPFlag(commonflags.WalletPath, cmd.Flags().Lookup(commonflags.WalletPath))
|
||||
_ = viper.BindPFlag(commonflags.AdminWalletPath, cmd.Flags().Lookup(commonflags.AdminWalletPath))
|
||||
},
|
||||
Run: setAdmin,
|
||||
}
|
||||
)
|
||||
|
||||
func init() {
|
||||
|
@ -121,4 +132,5 @@ func init() {
|
|||
initGetRecordsCmd()
|
||||
initDelRecordsCmd()
|
||||
initDelRecordCmd()
|
||||
initSetAdminCmd()
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue