feat: Add recursive directory selection and enhance prompt builder
- Add `select_all` option to recursively add directory contents - Implement `select_all_files_and_dirs` for file traversal - Rework prompt building with file tree and content formatters - Improve `get_file_extension` to handle dotfiles and special files - Update prompt template to use new structured data model
This commit is contained in:
@@ -20,14 +20,10 @@ dir2.select_file(name: 'build.sh')!
|
||||
dir2.select_file(name: 'debug.sh')!
|
||||
|
||||
mut dir3 := workspace1.add_dir(
|
||||
path: '/Users/mahmoud/code/github/freeflowuniverse/herolib/docker/postgresql'
|
||||
select_all_dirs: true
|
||||
select_all_files: false
|
||||
select_all: false
|
||||
path: '/Users/mahmoud/code/github/freeflowuniverse/herolib/docker/postgresql'
|
||||
select_all: true
|
||||
)!
|
||||
|
||||
dir3.select_file(name: 'docker-compose.yml')!
|
||||
|
||||
selected := workspace1.get_selected()
|
||||
|
||||
prompt := workspace1.prompt(
|
||||
|
||||
Reference in New Issue
Block a user