import Mustache from 'mustache' ; import { java } from './java' ; import { node } from './node' ; import { django } from './django' ; import { flask } from './flask' ; import { rails } from './rails' ; import { rack } from './rack' ; import { go } from './go' ; import { dotnet } from './dotnet' ; import { php } from './php' ; import { rum , rumScript } from './rum' ; const commandsMap = { java , node , django , flask , rails , rack , go , dotnet , php , js : rum , js_script : rumScript , } ; export function getCommands ( { variantId , policyDetails , } ) { const commands = commandsMap [ variantId ] ; if ( ! commands ) { return '' ; } return Mustache . render ( commands , policyDetails ) ; }