Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Files with leading dot "." are not ignored #55

Open
dankh opened this issue Aug 27, 2024 · 3 comments
Open

Files with leading dot "." are not ignored #55

dankh opened this issue Aug 27, 2024 · 3 comments

Comments

@dankh
Copy link

dankh commented Aug 27, 2024

In the documentation we can read that files with leading dot are ignored.

The init script :

eval "$(/home/me/cli/tome-linux_amd64 init C /home/me/ww/cli/bin bash)"

Tree of the bin directory :

bin
├── .lib
└── sites
    ├── list
    └── .sites

Output :

$ C
This is an instance of tome, running against the directory /home/me/ww/cli/bin. 
The commands are namespaced by the directory structure. 
Builtin commands available to all instance of tome are: 
 tome: currently a no-op. reserved namespace for future tome commands
 help: print help for the command
 commands: print all commands
 exec: execute a command 
Full list of commands available are: 
 .lib: 
 sites .sites: 
 sites list: 

We can see that .lib file and .sites file are treated as commands.

@toumorokoshi
Copy link
Owner

thanks for the report! are .lib and .sites directories, or files?

Also, what version is this using?

@dankh
Copy link
Author

dankh commented Sep 3, 2024

thanks for the report! are .lib and .sites directories, or files?

.sites and .lib are regular files.

Also, what version is this using?

The latest.

@toumorokoshi
Copy link
Owner

thanks! We do have some tests to verify that dotted prefixes are ignored: https://github.com/toumorokoshi/tome/blob/main/src/lib_tests.rs#L174. But I'll see if I can repro your case.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants