forked from zenstackhq/zenstack
-
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
chore: more CLI options (zenstackhq#695)
- Loading branch information
Showing
18 changed files
with
432 additions
and
137 deletions.
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
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 |
---|---|---|
@@ -1,9 +1,10 @@ | ||
import { Model } from '@zenstackhq/language/ast'; | ||
import { PluginOptions } from '@zenstackhq/sdk'; | ||
import { PluginFunction } from '@zenstackhq/sdk'; | ||
import PolicyGenerator from './policy-guard-generator'; | ||
|
||
export const name = 'Access Policy'; | ||
|
||
export default async function run(model: Model, options: PluginOptions) { | ||
return new PolicyGenerator().generate(model, options); | ||
} | ||
const run: PluginFunction = async (model, options, _dmmf, globalOptions) => { | ||
return new PolicyGenerator().generate(model, options, globalOptions); | ||
}; | ||
|
||
export default run; |
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
Oops, something went wrong.