mirror of
https://github.com/kastenhq/kubestr.git
synced 2024-12-15 17:50:57 +00:00
4d3cb00b76
* Allow for printing FIO and CSICheck JSON results to file Fixes #79 * Use the file output function in Baseline too, remove double printing * Emit non-zero exit code when error has occurred Fixes #80 * Don't output twice in error case * Added godoc and a note in command help text * Eliminate weird variable names, make godoc clearer * Error handling for file output
33 lines
856 B
Go
33 lines
856 B
Go
// Copyright 2020 Kubestr Developers
|
|
|
|
// 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.
|
|
|
|
package main
|
|
|
|
//go:generate ./scripts/load_csi_provisioners.sh
|
|
|
|
import (
|
|
"github.com/kastenhq/kubestr/cmd"
|
|
"os"
|
|
)
|
|
|
|
func main() {
|
|
if err := Execute(); err != nil {
|
|
os.Exit(1)
|
|
}
|
|
}
|
|
|
|
// Execute executes the main command
|
|
func Execute() error {
|
|
return cmd.Execute()
|
|
}
|