INNER CODE UNIT · Python

save_results

collabnix/kubetools · scripts/discover_tools.py:122

    def save_results(self, tools):
        """Save discovered tools to files"""
        if not tools:
            print("😴 No tools discovered")
            return False
            
        timestamp = datetime.now().strftime('%Y%m%d_%H%M%S')
        
        # Save to JSON
        filename = f'discovered_tools_{timestamp}.json'
        with open(filename, 'w') as f:
            json.dump(tools, f, indent=2)
        
        print(f"💾 Results saved: {filename}")
        return True

def main():
    github_token = os.getenv('GITHUB_TOKEN')

View source record →

📰 Research Paper
Loading…
⏳ Fetching content…