feat(supported-version): add all kind (#36)

This commit is contained in:
Damien Retzinger
2022-08-12 08:40:31 -04:00
committed by GitHub
parent 09d4f1e097
commit 26c354d8d4
8 changed files with 24 additions and 7 deletions
@@ -2,6 +2,7 @@ import { getMatrixForVersions } from "./get-matrix-for-versions";
import latestJson from '../kind/latest.json';
import currentlySupportedJson from '../kind/currently-supported.json';
import allVersions from '../versions/individual.json';
export const getMatrixForKind = (kind: string, versions: string = "") => {
switch(kind){
@@ -9,6 +10,8 @@ export const getMatrixForKind = (kind: string, versions: string = "") => {
return getMatrixForVersions(latestJson);
case 'currently-supported':
return getMatrixForVersions(currentlySupportedJson);
case 'all':
return getMatrixForVersions(Object.keys(allVersions));
case 'custom':
return getMatrixForVersions(versions.split(","))
default: