-
Notifications
You must be signed in to change notification settings - Fork 237
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Updates "outdated" command to display stale image versions #768
Open
samruddhikhandale
wants to merge
21
commits into
main
Choose a base branch
from
samruddhikhandale/outdated-image
base: main
Could not load branches
Branch not found: {{ refName }}
Loading
Could not load tags
Nothing to show
Loading
Are you sure you want to change the base?
Some commits from the old base branch may be removed from the timeline,
and old review comments may become outdated.
Open
Changes from all commits
Commits
Show all changes
21 commits
Select commit
Hold shift + click to select a range
4d4c5ca
Outdated image for devcontainer, dockerfile and dockercompose
samruddhikhandale 85d547b
update json with "path" property
samruddhikhandale 78e7b62
"currentImageValue" and "newImageValue"
samruddhikhandale 2ab7094
Refactor outdated to isolated class
samruddhikhandale 0ed835e
fix type check
samruddhikhandale c705a14
fix test
samruddhikhandale ddf0ae5
isolate outdated tests to cli.outdated.test.ts
samruddhikhandale 320f987
multiple stage + multiple services + add tests
samruddhikhandale cdf9fe4
fix tests
samruddhikhandale cf1f50a
fix muliti-stage ; same arg defined twice
samruddhikhandale 33fe005
fix tests
samruddhikhandale b47ad7e
add more tests
samruddhikhandale 2c7c14f
more tests
samruddhikhandale ffc7c56
Merge branch 'main' into samruddhikhandale/outdated-image
samruddhikhandale 4df5469
fix tests
samruddhikhandale 42eacc0
fix test
samruddhikhandale c02beb2
add --only-features --only-images
samruddhikhandale 28e91b2
use interfaces
samruddhikhandale e7124fb
use findBaseImages()
samruddhikhandale 216f7e5
address comments
samruddhikhandale bada9f9
update latest
samruddhikhandale File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -6,6 +6,9 @@ | |
}, | ||
{ | ||
"path": "../spec-utils" | ||
}, | ||
{ | ||
"path": "../spec-shutdown" | ||
} | ||
] | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,24 @@ | ||
import { Argv } from 'yargs'; | ||
import { UnpackArgv } from '../devContainersSpecCLI'; | ||
import { outdated } from './outdatedCommandImpl'; | ||
|
||
export function outdatedOptions(y: Argv) { | ||
return y.options({ | ||
'user-data-folder': { type: 'string', description: 'Host path to a directory that is intended to be persisted and share state between sessions.' }, | ||
samruddhikhandale marked this conversation as resolved.
Show resolved
Hide resolved
|
||
'workspace-folder': { type: 'string', required: true, description: 'Workspace folder path. The devcontainer.json will be looked up relative to this path.' }, | ||
'only-features': { type: 'boolean', default: false, description: 'Only check for outdated features. Cannot be combined with \'--only-images\'' }, | ||
'only-images': { type: 'boolean', default: false, description: 'Only check for outdated images. Cannot be combined with \'--only-features\'' }, | ||
'config': { type: 'string', description: 'devcontainer.json path. The default is to use .devcontainer/devcontainer.json or, if that does not exist, .devcontainer.json in the workspace folder.' }, | ||
'output-format': { choices: ['text' as 'text', 'json' as 'json'], default: 'text', description: 'Output format.' }, | ||
'log-level': { choices: ['info' as 'info', 'debug' as 'debug', 'trace' as 'trace'], default: 'info' as 'info', description: 'Log level for the --terminal-log-file. When set to trace, the log level for --log-file will also be set to trace.' }, | ||
'log-format': { choices: ['text' as 'text', 'json' as 'json'], default: 'text' as 'text', description: 'Log format.' }, | ||
'terminal-columns': { type: 'number', implies: ['terminal-rows'], description: 'Number of columns to render the output for. This is required for some of the subprocesses to correctly render their output.' }, | ||
'terminal-rows': { type: 'number', implies: ['terminal-columns'], description: 'Number of rows to render the output for. This is required for some of the subprocesses to correctly render their output.' }, | ||
}); | ||
} | ||
|
||
export type OutdatedArgs = UnpackArgv<ReturnType<typeof outdatedOptions>>; | ||
|
||
export function outdatedHandler(args: OutdatedArgs) { | ||
(async () => outdated(args))().catch(console.error); | ||
} |
Oops, something went wrong.
Oops, something went wrong.
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Update