import React, { Component } from "react"; import { OverlayTrigger, Tooltip, Icon } from "patternfly-react"; export class ParamatersHelpIcon extends Component { render() { return (

Tips: Arguments


This panel contains all the arguments and options passed to the ansible-playbook command.

You can control which arguments ARA should ignore with the{" "} ignored_arguments configuration.

} placement="bottom" >
); } } export default class PlaybookArgs extends Component { constructor(props) { super(props); this.state = { search: "" }; } _renderArg = arg => { if (arg instanceof Array) { return arg.join(", "); } else { return arg; } }; render() { const { playbook } = this.props; const { search } = this.state; const args = Object.keys(playbook.arguments); const filteredArgs = args.filter( arg => arg.toLowerCase().indexOf(search.toLowerCase()) !== -1 ); console.log(search); return (
this.setState({ search: e.target.value })} />
Showing {filteredArgs.length} of{" "} {args.length} args
{filteredArgs.map((arg, i) => ( ))}
Argument Value
{arg} {this._renderArg(playbook.arguments[arg])}
); } }