mirror of
https://github.com/sanjeed5/awesome-cursor-rules-mdc.git
synced 2026-11-27 21:22:55 +08:00
Remove deprecated cursor-rules-cli and clean up references
The CLI tool has been deprecated, so removing the entire cursor-rules-cli directory and all references to it: - Delete cursor-rules-cli directory and all its contents - Remove Product Hunt badge from README - Update project structure documentation in README - Remove code that copied rules.json to cursor-rules-cli - Remove unused shutil import from generate_mdc_files.py
This commit is contained in:
@@ -16,7 +16,6 @@ import concurrent.futures
|
||||
from functools import partial
|
||||
import yaml
|
||||
import sys
|
||||
import shutil
|
||||
|
||||
# Get the script directory for absolute path resolution
|
||||
SCRIPT_DIR = Path(__file__).parent.absolute()
|
||||
@@ -913,32 +912,6 @@ def main():
|
||||
)
|
||||
logger.info("MDC generation completed successfully!")
|
||||
|
||||
# Copy rules.json to cursor-rules-cli folder
|
||||
# This is the source of truth - the CLI package will use this during setup
|
||||
cursor_rules_cli_dir = Path(SCRIPT_DIR).parent / "cursor-rules-cli"
|
||||
cursor_rules_cli_dir.mkdir(exist_ok=True)
|
||||
|
||||
target_rules_json = cursor_rules_cli_dir / "rules.json"
|
||||
|
||||
try:
|
||||
shutil.copy2(rules_json_path, target_rules_json)
|
||||
logger.info(f"Successfully copied rules.json (source of truth) to {target_rules_json}")
|
||||
|
||||
# Add a comment file to explain the source of truth
|
||||
with open(cursor_rules_cli_dir / "RULES_JSON_README.md", "w") as f:
|
||||
f.write("""# About rules.json
|
||||
|
||||
This rules.json file is automatically copied from the project root.
|
||||
It is the source of truth for library detection rules.
|
||||
|
||||
DO NOT EDIT THIS FILE DIRECTLY.
|
||||
Instead, edit the main rules.json in the project root and run the generate_mdc_files.py script.
|
||||
""")
|
||||
logger.info("Created RULES_JSON_README.md to document the source of truth")
|
||||
|
||||
except Exception as e:
|
||||
logger.error(f"Failed to copy rules.json to cursor-rules-cli folder: {str(e)}")
|
||||
|
||||
except Exception as e:
|
||||
logger.error(f"An error occurred: {str(e)}")
|
||||
if args.verbose:
|
||||
|
||||
Reference in New Issue
Block a user