Skip to main content
Glama
run_postprocessor.py1.18 kB
# Copyright (c) Meta Platforms, Inc. and affiliates. # # This source code is licensed under both the MIT license found in the # LICENSE-MIT file in the root directory of this source tree and the Apache # License, Version 2.0 found in the LICENSE-APACHE file in the root directory # of this source tree. import argparse import pathlib import utils def _parse_args(): parser = argparse.ArgumentParser(description="Tool to run a jar postprocessor.") parser.add_argument( "--postprocessor_cmd", type=str, required=True, ) parser.add_argument( "--zip_scrubber", type=str, required=True, help="A command to run a zip scrubber", ) parser.add_argument( "--output", type=pathlib.Path, required=True, help="the path that the postprocessor writes to, which is then scrubbed", ) return parser.parse_args() def main(): args = _parse_args() utils.execute_command(utils.shlex_split(args.postprocessor_cmd)) scrubber_cmd = utils.shlex_split(args.zip_scrubber) + [args.output] utils.execute_command(scrubber_cmd) if __name__ == "__main__": main()

Latest Blog Posts

MCP directory API

We provide all the information about MCP servers via our MCP API.

curl -X GET 'https://glama.ai/api/mcp/v1/servers/systeminit/si'

If you have feedback or need assistance with the MCP directory API, please join our Discord server