entrance

package
v0.1.1 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Jan 12, 2024 License: Unlicense Imports: 18 Imported by: 0

Documentation

Index

Constants

View Source
const (
	SKIP_EMPTY_CHANNEL_COUNT = 3
)

Variables

View Source
var (
	Verbose      = false
	Vverbose     = false
	ReleaseDep   = false
	PrintVersion = false
	DepPath      = ""
	ConfigPath   = ""
)
View Source
var BaseCmd = &cobra.Command{
	Use:   "SHX8800_EDITOR",
	Short: "SHX8800_EDITOR",

	Long: `SHX8800_EDITOR - SHX8800 dat editor`,
	Run: func(cmd *cobra.Command, args []string) {
		if PrintVersion {
			printVer()
			return
		}
		logger.InitLog(Verbose, Vverbose)
		if ReleaseDep {
			err := filetools.ReleaseFile()
			if err != nil {
				slog.Fatalf("无法释放依赖!")
				_, _ = fmt.Scanln()
				return
			}
			slog.Info("释放成功!")
			return
		}
		mainRunner()
	},
}

Functions

func AddChannel

func AddChannel(configs *radio.ClassTheRadioData, pos string, data [14]string) error

func AskForDetail

func AskForDetail() (*[14]string, error)

func BatchClear

func BatchClear(configs *radio.ClassTheRadioData, chanClearRange []string) error

func ClearChannel

func ClearChannel(configs *radio.ClassTheRadioData, chanNo string) error

func ModifyChannel

func ModifyChannel(configs *radio.ClassTheRadioData, pos string, modPos int, value string) error

func RemoveAllEmpty

func RemoveAllEmpty(configs *radio.ClassTheRadioData)

func ShowCopiedChannel

func ShowCopiedChannel()

Types

This section is empty.

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL