-
Notifications
You must be signed in to change notification settings - Fork 16
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge branch 'master' into vdr/produce-didweb
- Loading branch information
Showing
41 changed files
with
2,276 additions
and
109 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,37 @@ | ||
/* | ||
* Copyright (C) 2023 Nuts community | ||
* | ||
* This program is free software: you can redistribute it and/or modify | ||
* it under the terms of the GNU General Public License as published by | ||
* the Free Software Foundation, either version 3 of the License, or | ||
* (at your option) any later version. | ||
* | ||
* This program is distributed in the hope that it will be useful, | ||
* but WITHOUT ANY WARRANTY; without even the implied warranty of | ||
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the | ||
* GNU General Public License for more details. | ||
* | ||
* You should have received a copy of the GNU General Public License | ||
* along with this program. If not, see <https://www.gnu.org/licenses/>. | ||
* | ||
*/ | ||
|
||
package cmd | ||
|
||
import ( | ||
"github.com/nuts-foundation/nuts-node/discovery" | ||
"github.com/spf13/pflag" | ||
) | ||
|
||
// FlagSet contains flags relevant for the module. | ||
func FlagSet() *pflag.FlagSet { | ||
defs := discovery.DefaultConfig() | ||
flagSet := pflag.NewFlagSet("discovery", pflag.ContinueOnError) | ||
flagSet.String("discovery.definitions.directory", defs.Definitions.Directory, | ||
"Directory to load Discovery Service Definitions from. If not set, the discovery service will be disabled. "+ | ||
"If the directory contains JSON files that can't be parsed as service definition, the node will fail to start.") | ||
flagSet.StringSlice("discovery.server.definition_ids", defs.Server.DefinitionIDs, | ||
"IDs of the Discovery Service Definitions for which to act as server. "+ | ||
"If an ID does not map to a loaded service definition, the node will fail to start.") | ||
return flagSet | ||
} |
Oops, something went wrong.