abd1317566
As part of config refactoring process, we have to prepare root level command to future changes, optimize function signatures and its logic. Change-Id: I563a7556ce1cca795a74cf2c6a26380467a15a5d Signed-off-by: Ruslan Aliev <raliev@mirantis.com> Relates-To: #327
30 lines
753 B
Go
30 lines
753 B
Go
/*
|
|
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
|
|
|
|
https://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
|
|
|
|
import (
|
|
"fmt"
|
|
"os"
|
|
|
|
"opendev.org/airship/airshipctl/cmd"
|
|
)
|
|
|
|
func main() {
|
|
if err := cmd.NewAirshipCTLCommand(os.Stdout).Execute(); err != nil {
|
|
fmt.Fprintln(os.Stderr, err)
|
|
os.Exit(1)
|
|
}
|
|
}
|