MCPcopy Create free account
hub / github.com/danielmiessler/Fabric / handle_star_name_input

Function handle_star_name_input

scripts/python_ui/streamlit.py:1124–1138  ·  view source on GitHub ↗

Handle the starring process when a name is input. Args: log_index: Index of the output to star name: Name to give the starred output

(log_index: int, name: str)

Source from the content-addressed store, hash-verified

1122
1123
1124def handle_star_name_input(log_index: int, name: str):
1125 """Handle the starring process when a name is input.
1126
1127 Args:
1128 log_index: Index of the output to star
1129 name: Name to give the starred output
1130 """
1131 try:
1132 if star_output(log_index, name):
1133 st.success("Output starred successfully!")
1134 else:
1135 st.error("Failed to star output. Please try again.")
1136 except Exception as e:
1137 logger.error(f"Error handling star name input: {str(e)}")
1138 st.error(f"Error starring output: {str(e)}")
1139
1140
1141def execute_pattern_chain(patterns_sequence: List[str], initial_input: str) -> Dict:

Callers 1

mainFunction · 0.85

Calls 1

star_outputFunction · 0.85

Tested by

no test coverage detected