Skip to content

Commit

Permalink
feedback
Browse files Browse the repository at this point in the history
  • Loading branch information
oncilla committed Sep 16, 2024
1 parent 4a010c1 commit fb13dfb
Show file tree
Hide file tree
Showing 6 changed files with 8 additions and 8 deletions.
2 changes: 1 addition & 1 deletion doc/command/scion-pki/scion-pki_trc.rst
Original file line number Diff line number Diff line change
Expand Up @@ -27,7 +27,7 @@ SEE ALSO
* :ref:`scion-pki trc combine <scion-pki_trc_combine>` - Combine partially signed TRCs
* :ref:`scion-pki trc extract <scion-pki_trc_extract>` - Extract parts of a signed TRC
* :ref:`scion-pki trc format <scion-pki_trc_format>` - Reformat a TRC or TRC payload
* :ref:`scion-pki trc inspect <scion-pki_trc_inspect>` - Represent TRC in a human readable form
* :ref:`scion-pki trc inspect <scion-pki_trc_inspect>` - Print TRC details in a human readable format
* :ref:`scion-pki trc payload <scion-pki_trc_payload>` - Generate new TRC payload
* :ref:`scion-pki trc sign <scion-pki_trc_sign>` - Sign a TRC
* :ref:`scion-pki trc verify <scion-pki_trc_verify>` - Verify a TRC chain
Expand Down
4 changes: 2 additions & 2 deletions doc/command/scion-pki/scion-pki_trc_inspect.rst
Original file line number Diff line number Diff line change
Expand Up @@ -5,13 +5,13 @@
scion-pki trc inspect
---------------------

Represent TRC in a human readable form
Print TRC details in a human readable format

Synopsis
~~~~~~~~


'inspect' outputs the TRC contents in a inspect readable form.
'inspect' prints the details of a TRC a human-readable fromat.

The input file can either be a TRC payload, or a signed TRC.
The output can either be in yaml, or json.
Expand Down
2 changes: 1 addition & 1 deletion scion-pki/conf/trc.go
Original file line number Diff line number Diff line change
Expand Up @@ -52,7 +52,7 @@ func LoadTRC(file string) (TRC, error) {
return TRC{}, serrors.Wrap("unable to load TRC config from file", err, "file", file)
}
if err := cfg.Validity.Validate(); err != nil {
return TRC{}, serrors.Wrap("validating validity", err)
return TRC{}, serrors.Wrap("validating 'validity' section", err)
}
cfg.relPath = filepath.Dir(file)
return cfg, nil
Expand Down
4 changes: 2 additions & 2 deletions scion-pki/trcs/BUILD.bazel
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@ go_library(
"decode.go",
"extract.go",
"format.go",
"human.go",
"inspect.go",
"payload.go",
"sign.go",
"toasn.go",
Expand Down Expand Up @@ -40,7 +40,7 @@ go_test(
"decoded_test.go",
"export_test.go",
"format_test.go",
"human_test.go",
"inspect_test.go",
"sign_test.go",
"toasn_test.go",
"verify_test.go",
Expand Down
4 changes: 2 additions & 2 deletions scion-pki/trcs/human.go → scion-pki/trcs/inspect.go
Original file line number Diff line number Diff line change
Expand Up @@ -51,10 +51,10 @@ func newHuman(pather command.Pather) *cobra.Command {
cmd := &cobra.Command{
Use: "inspect",
Aliases: []string{"human"},
Short: "Represent TRC in a human readable form",
Short: "Print TRC details in a human readable format",
Example: fmt.Sprintf(` %[1]s inspect ISD1-B1-S1.pld.der
%[1]s inspect ISD1-B1-S1.trc`, pather.CommandPath()),
Long: `'inspect' outputs the TRC contents in a inspect readable form.
Long: `'inspect' prints the details of a TRC a human-readable fromat.
The input file can either be a TRC payload, or a signed TRC.
The output can either be in yaml, or json.
Expand Down
File renamed without changes.

0 comments on commit fb13dfb

Please sign in to comment.