mirror of
https://github.com/railwayapp/cli
synced 2026-04-21 14:07:23 +00:00
15 lines
294 B
Go
15 lines
294 B
Go
package cmd
|
|
|
|
import (
|
|
"context"
|
|
|
|
"github.com/railwayapp/cli/entity"
|
|
)
|
|
|
|
func (h *Handler) Logs(ctx context.Context, req *entity.CommandRequest) error {
|
|
numLines, err := req.Cmd.Flags().GetInt32("lines")
|
|
if err != nil {
|
|
return err
|
|
}
|
|
return h.ctrl.GetActiveDeploymentLogs(ctx, numLines)
|
|
}
|