File tree 1 file changed +5
-0
lines changed
1 file changed +5
-0
lines changed Original file line number Diff line number Diff line change @@ -60,6 +60,9 @@ class PaasLogs extends PaasKommand {
60
60
since : flags . string ( {
61
61
description : "Display logs from a specific absolute (e.g. 2022/12/02 09:41) or relative (e.g. a minute ago) time" ,
62
62
} ) ,
63
+ until : flags . string ( {
64
+ description : "Display logs until a specific absolute (e.g. 2022/12/02 09:41) or relative (e.g. a minute ago) time" ,
65
+ } ) ,
63
66
} ;
64
67
65
68
static args = [
@@ -106,6 +109,7 @@ class PaasLogs extends PaasKommand {
106
109
107
110
// Parse the time arguments
108
111
const since = this . flags . since ? chrono . parseDate ( this . flags . since ) . toISOString ( ) : undefined ;
112
+ const until = this . flags . until ? chrono . parseDate ( this . flags . until ) . toISOString ( ) : undefined ;
109
113
110
114
// Perform the streamed request
111
115
const incomingMessage = await this . paas . queryHttpStream ( {
@@ -118,6 +122,7 @@ class PaasLogs extends PaasKommand {
118
122
tailLines : this . flags . tail ,
119
123
podName : this . flags . podName ,
120
124
since,
125
+ until,
121
126
} ) ;
122
127
123
128
// Read the response line by line
You can’t perform that action at this time.
0 commit comments