-
Notifications
You must be signed in to change notification settings - Fork 4
Closed
Labels
developmentStandard developmentStandard development
Description
Specification
touch serves two purposes
- Will create a new empty file if no file exists at that path.
- Will update the timestamps of a file if it already exists.
For our secrets touch command we need to support these two actions while working with normal file paths and secret paths. It should also support multiple paths for touching multiple files. Wild cards are supported as well but will not create files.
So we have two levels of functionality.
- Create files.
- Update file access times without modifying contents.
I don't know if we want to include updating the files access times. Most of the commands complexity will come from that.
Additional context
Related #32
Tasks
- Implement a
secrets touchcommand. - Must create a new empty secret or file if no file exists at the provided path.
- If secret or file exists then we update the updated and access time without modifying contents.
- It takes a varadic argument of file paths, so we can touch multiple files at a time.
- File paths and secret paths should be interchangeable.
- Touching to create a file can't operate recusively. So it won't create a directory for a touched file.
- Wildcards can be used for updating access times of files, but not for creating files.
Reactions are currently unavailable
Metadata
Metadata
Assignees
Labels
developmentStandard developmentStandard development