@spotinst/spinnaker-deck
Version:
Spinnaker-Deck service, forked with support to Spotinst
21 lines (17 loc) • 819 B
JavaScript
;
import { module } from 'angular';
import { EXECUTION_SERVICE } from 'core/pipeline/service/execution.service';
import { SpelAutocompleteService } from './SpelAutocompleteService';
export const CORE_WIDGETS_SPELTEXT_SPELAUTOCOMPLETE_SERVICE = 'spinnaker.core.widget.spelAutocomplete';
export const name = CORE_WIDGETS_SPELTEXT_SPELAUTOCOMPLETE_SERVICE; // for backwards compatibility
module(CORE_WIDGETS_SPELTEXT_SPELAUTOCOMPLETE_SERVICE, [EXECUTION_SERVICE]).factory('spelAutocomplete', [
'$q',
'executionService',
($q, executionService) => {
const autocomplete = new SpelAutocompleteService($q, executionService);
return {
textcompleteConfig: autocomplete.textcompleteConfig,
addPipelineInfo: (pipelineConfig) => autocomplete.addPipelineInfo(pipelineConfig),
};
},
]);