INNER CODE UNIT · Go

New

ktr0731/evans · app/app.go:24

func New(ui cui.UI) *App {
	var flags flags
	cmd := newOldCommand(&flags, ui)
	return &App{
		cui: ui,
		cmd: cmd,
	}
}

// Run starts the application. The return value means the exit code.
func (a *App) Run(args []string) int {
	// Currently, Evans is migrating to new-style command-line interface.
	// So, there are both of old-style and new-style command-line interfaces in this version.

	a.cmd.SetArgs(args)
	for _, r := range args {
		// Hack.
		switch r {

View source record →

📰 Research Paper
Loading…
⏳ Fetching content…