INNER CODE UNIT · Go

func

lucagrulla/cw · main.go:197

func (t *tailCmd) Run(ctx *appContext) error {
	if additionalInput := fromStdin(); additionalInput != nil {
		t.LogGroupStreamName = append(t.LogGroupStreamName, additionalInput...)
	}
	if len(t.LogGroupStreamName) == 0 {
		fmt.Fprintln(os.Stderr, "cw: error: required argument 'groupName[:logStreamPrefix]' not provided, try --help")
		os.Exit(1)
	}

	st, err := timestampToTime(&t.StartTime, t.Local)
	if err != nil {
		fmt.Fprintf(os.Stderr, "can't parse %s as a valid date/time\n", t.StartTime)
		os.Exit(1)
	}
	var et time.Time
	if t.EndTime != "" {
		endT, errr := timestampToTime(&t.EndTime, t.Local)
		if errr != nil {

View source record →

📰 Research Paper
Loading…
⏳ Fetching content…