This repository has been archived by the owner on May 26, 2023. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 26
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
feat: add support for common v2 endpoints (ping/metrics/version/config)
This commit adds v2 (Ireland/Jakarta) support for four common endpoints: - version - metrics - ping - config For information about the available commands, use `edgex-cli -h` There are a number of ways to use the commands: 1. `edgex-cli version` displays version of each active microservice. The version commands just shows the version string. The other commands use a pretty-printed JSON structure. 2. `edgex-cli version -d` shows debug output - the URL used and the result 3. `edgex-cli version -j` gets the raw JSON output for one service (by default core-data) It's also possible to specify the service to use. : `-m/--metadata`, `-c/--command`, `-n/--notification`, `-s/--scheduler` or `--data` (which is the default). This can also be combined with `-j` or `-d` Example: - `$ edgex-cli metrics -j -m` - `$ edgex-cli ping -d --command` Help is available with ``` $ edgex-cli help $ edgex-cli version --help $ edgex-cli version --h ``` Signed-off-by: Siggi Skulason <[email protected]>
- Loading branch information
Siggi Skulason
committed
Sep 17, 2021
1 parent
d0bd38e
commit 1b3752f
Showing
50 changed files
with
616 additions
and
3,060 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,5 +1,4 @@ | ||
edgex-cli | ||
edgex | ||
edgex-cli | ||
go.sum | ||
coverage.out | ||
|
||
|
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,25 @@ | ||
/* | ||
* Copyright (C) 2021 Canonical Ltd | ||
* | ||
* Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except | ||
* in compliance with the License. You may obtain a copy of the License at | ||
* | ||
* http://www.apache.org/licenses/LICENSE-2.0 | ||
* | ||
* Unless required by applicable law or agreed to in writing, software distributed under the License | ||
* is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express | ||
* or implied. See the License for the specific language governing permissions and limitations under | ||
* the License. | ||
* | ||
* SPDX-License-Identifier: Apache-2.0' | ||
*/ | ||
|
||
package main | ||
|
||
import ( | ||
"github.com/edgexfoundry/edgex-cli/internal/cmd" | ||
) | ||
|
||
func main() { | ||
cmd.Execute() | ||
} |
Oops, something went wrong.