mirror of
https://github.com/labring/sealos.git
synced 2026-11-03 12:46:33 +08:00
* ci: multiple improvements on CI workflow Signed-off-by: Mercurio <signormercurio@gmail.com> * attempt to fix lint actions error Signed-off-by: Mercurio <signormercurio@gmail.com> * delete fossa actions Signed-off-by: Mercurio <signormercurio@gmail.com> * attempt to solve lint error Signed-off-by: Mercurio <signormercurio@gmail.com> * format code Signed-off-by: Mercurio <signormercurio@gmail.com> * attempt to fix lint error Signed-off-by: Mercurio <signormercurio@gmail.com> * fix lint error Signed-off-by: Mercurio <signormercurio@gmail.com> * fix nolint syntax error Signed-off-by: Mercurio <signormercurio@gmail.com> * completely fix lint error Signed-off-by: Mercurio <signormercurio@gmail.com>
31 lines
852 B
Go
31 lines
852 B
Go
/*
|
|
Copyright 2022 cuisongliu@qq.com.
|
|
|
|
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 flags
|
|
|
|
import (
|
|
"github.com/spf13/pflag"
|
|
|
|
"github.com/labring/sealos/pkg/utils/logger"
|
|
)
|
|
|
|
// PrintFlags logs the flags in the flagset
|
|
func PrintFlags(flags *pflag.FlagSet) {
|
|
flags.VisitAll(func(flag *pflag.Flag) {
|
|
logger.Debug("FLAG: --%s=%q", flag.Name, flag.Value)
|
|
})
|
|
}
|