Skip to content

Commit

Permalink
Multiple Changes
Browse files Browse the repository at this point in the history
- Add .gitignore for bin
- Move docs verify script to scripts/ and update workflow
- Update Makefile to point to main.go in repo root
- Remove auto generated by cobra message

Signed-off-by: Aditya Sirish <aditya@saky.in>
  • Loading branch information
adityasaky committed Oct 9, 2021
1 parent d9ba4ac commit 9685077
Show file tree
Hide file tree
Showing 17 changed files with 10 additions and 20 deletions.
2 changes: 1 addition & 1 deletion .github/workflows/verify-docgen.yml
Original file line number Diff line number Diff line change
Expand Up @@ -16,4 +16,4 @@ jobs:
- uses: actions/setup-go@v2
with:
go-version: '1.17.x'
- run: ./cmd/verify.sh
- run: ./scripts/verify-docs.sh
1 change: 1 addition & 0 deletions .gitignore
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
bin/
2 changes: 1 addition & 1 deletion Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@ LAYOUT_TMPL := ./certs/layout.tmpl

build: modules
@mkdir -p bin
@go build -o ./bin/in-toto ./cmd
@go build -o ./bin/in-toto main.go

modules:
@go mod tidy
Expand Down
11 changes: 6 additions & 5 deletions cmd/root.go
Original file line number Diff line number Diff line change
Expand Up @@ -20,11 +20,12 @@ var (
)

var rootCmd = &cobra.Command{
Use: "in-toto",
Short: "Framework to secure integrity of software supply chains",
Long: `A framework to secure the integrity of software supply chains https://in-toto.io/`,
SilenceUsage: true,
SilenceErrors: true,
Use: "in-toto",
Short: "Framework to secure integrity of software supply chains",
Long: `A framework to secure the integrity of software supply chains https://in-toto.io/`,
SilenceUsage: true,
SilenceErrors: true,
DisableAutoGenTag: true,
}

// Execute runs the root command
Expand Down
1 change: 0 additions & 1 deletion doc/in-toto.md
Original file line number Diff line number Diff line change
Expand Up @@ -23,4 +23,3 @@ A framework to secure the integrity of software supply chains https://in-toto.io
* [in-toto sign](in-toto_sign.md) - Provides command line interface to sign in-toto link or layout metadata
* [in-toto verify](in-toto_verify.md) - Verify that the software supply chain of the delivered product

###### Auto generated by spf13/cobra on 4-Oct-2021
1 change: 0 additions & 1 deletion doc/in-toto_completion.md
Original file line number Diff line number Diff line change
Expand Up @@ -44,4 +44,3 @@ in-toto completion [bash|zsh|fish|powershell]

* [in-toto](in-toto.md) - Framework to secure integrity of software supply chains

###### Auto generated by spf13/cobra on 4-Oct-2021
1 change: 0 additions & 1 deletion doc/in-toto_gendoc.md
Original file line number Diff line number Diff line change
Expand Up @@ -17,4 +17,3 @@ in-toto gendoc [flags]

* [in-toto](in-toto.md) - Framework to secure integrity of software supply chains

###### Auto generated by spf13/cobra on 4-Oct-2021
1 change: 0 additions & 1 deletion doc/in-toto_key.md
Original file line number Diff line number Diff line change
Expand Up @@ -14,4 +14,3 @@ Key management commands
* [in-toto key id](in-toto_key_id.md) - Output the key id for a given key
* [in-toto key layout](in-toto_key_layout.md) - Output the key layout for a given key in <KEYID>: <KEYOBJ> format

###### Auto generated by spf13/cobra on 4-Oct-2021
1 change: 0 additions & 1 deletion doc/in-toto_key_id.md
Original file line number Diff line number Diff line change
Expand Up @@ -20,4 +20,3 @@ in-toto key id <file> [flags]

* [in-toto key](in-toto_key.md) - Key management commands

###### Auto generated by spf13/cobra on 4-Oct-2021
1 change: 0 additions & 1 deletion doc/in-toto_key_layout.md
Original file line number Diff line number Diff line change
Expand Up @@ -20,4 +20,3 @@ in-toto key layout <file> [flags]

* [in-toto key](in-toto_key.md) - Key management commands

###### Auto generated by spf13/cobra on 4-Oct-2021
1 change: 0 additions & 1 deletion doc/in-toto_record.md
Original file line number Diff line number Diff line change
Expand Up @@ -42,4 +42,3 @@ failure and zero otherwise.
passed materials and signs it with the passed functionary’s key.
* [in-toto record stop](in-toto_record_stop.md) - Records and adds the paths and hashes of the passed products to the link metadata file and updates the signature.

###### Auto generated by spf13/cobra on 4-Oct-2021
1 change: 0 additions & 1 deletion doc/in-toto_record_start.md
Original file line number Diff line number Diff line change
Expand Up @@ -51,4 +51,3 @@ in-toto record start [flags]
* [in-toto record](in-toto_record.md) - Creates a signed link metadata file in two steps, in order to provide
evidence for supply chain steps that cannot be carried out by a single command

###### Auto generated by spf13/cobra on 4-Oct-2021
1 change: 0 additions & 1 deletion doc/in-toto_record_stop.md
Original file line number Diff line number Diff line change
Expand Up @@ -52,4 +52,3 @@ in-toto record stop [flags]
* [in-toto record](in-toto_record.md) - Creates a signed link metadata file in two steps, in order to provide
evidence for supply chain steps that cannot be carried out by a single command

###### Auto generated by spf13/cobra on 4-Oct-2021
1 change: 0 additions & 1 deletion doc/in-toto_run.md
Original file line number Diff line number Diff line change
Expand Up @@ -50,4 +50,3 @@ in-toto run [flags]

* [in-toto](in-toto.md) - Framework to secure integrity of software supply chains

###### Auto generated by spf13/cobra on 4-Oct-2021
1 change: 0 additions & 1 deletion doc/in-toto_sign.md
Original file line number Diff line number Diff line change
Expand Up @@ -25,4 +25,3 @@ in-toto sign [flags]

* [in-toto](in-toto.md) - Framework to secure integrity of software supply chains

###### Auto generated by spf13/cobra on 4-Oct-2021
1 change: 0 additions & 1 deletion doc/in-toto_verify.md
Original file line number Diff line number Diff line change
Expand Up @@ -35,4 +35,3 @@ in-toto verify [flags]

* [in-toto](in-toto.md) - Framework to secure integrity of software supply chains

###### Auto generated by spf13/cobra on 4-Oct-2021
2 changes: 1 addition & 1 deletion cmd/verify.sh → scripts/verify-docs.sh
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ set -e

# Verify that generated Markdown docs are up-to-date.
tmpdir=$(mktemp -d)
go run ./cmd gendoc --dir "$tmpdir"
go run main.go gendoc --dir "$tmpdir"
echo "###########################################"
echo "If diffs are found, run: go run ./cmd gendoc"
echo "###########################################"
Expand Down

0 comments on commit 9685077

Please sign in to comment.