olydis / autorest-extension-base

Library for easily creating AutoRest extensions

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

AutoRest Extension Base

Allows to easily create an AutoRest extension. See https://github.com/olydis/autorest-extension-helloworld for an example of how to reference and use this package. We recommend using that as a starting point.

Usage

import { AutoRestExtension } from "autorest-extension-base";

const extension = new AutoRestExtension();

extension.Add("plugin-name", async autoRestApi => {
  // plugin implementation
  // Available functions:
  // * Information retrieval:
  //       autoRestApi.ListInputs
  //       autoRestApi.ReadFile
  //       autoRestApi.GetValue
  // * Information submission:
  //       autoRestApi.WriteFile
  //       autoRestApi.Message
});

extension.Run();

About

Library for easily creating AutoRest extensions

License:MIT License


Languages

Language:TypeScript 100.0%