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

Implement secrets touch command #244

Closed
tegefaulkes opened this issue Jul 11, 2024 · 3 comments · Fixed by #366
Closed

Implement secrets touch command #244

tegefaulkes opened this issue Jul 11, 2024 · 3 comments · Fixed by #366
Assignees
Labels
development Standard development

Comments

@tegefaulkes
Copy link
Contributor

Specification

touch serves two purposes

  1. Will create a new empty file if no file exists at that path.
  2. 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.

  1. Create files.
  2. 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

  1. Implement a secrets touch command.
  2. Must create a new empty secret or file if no file exists at the provided path.
  3. If secret or file exists then we update the updated and access time without modifying contents.
  4. It takes a varadic argument of file paths, so we can touch multiple files at a time.
  5. File paths and secret paths should be interchangeable.
  6. Touching to create a file can't operate recusively. So it won't create a directory for a touched file.
  7. Wildcards can be used for updating access times of files, but not for creating files.
@tegefaulkes tegefaulkes added the development Standard development label Jul 11, 2024
Copy link

linear bot commented Jul 11, 2024

@CMCDragonkai
Copy link
Member

Didn't this get implemented?

@aryanjassal
Copy link
Member

Didn't this get implemented?

No, not yet. I opened a PR, but I started working on the secrets env command. I will start work on this once the more pressing PRs have been closed.

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

Successfully merging a pull request may close this issue.

3 participants