Warn before overwriting file if user has already posted today #2

Closed
opened 2023-03-12 15:41:25 +11:00 by hughrun · 1 comment
hughrun commented 2023-03-12 15:41:25 +11:00 (Migrated from github.com)

Might be best to check this when running write since that sets the filename, but this would require internet access when authoring.

Try something like:

ssh -q projects [[ -f $filepath ]] && echo "File exists" || echo "File does not exist";

then use output() - see https://doc.rust-lang.org/std/process/struct.Command.html#method.stdout

Might be best to check this when running `write` since that sets the filename, but this would require internet access when authoring. Try something like: ```bash ssh -q projects [[ -f $filepath ]] && echo "File exists" || echo "File does not exist"; ``` then use output() - see https://doc.rust-lang.org/std/process/struct.Command.html#method.stdout
hughrun commented 2023-03-12 15:42:19 +11:00 (Migrated from github.com)

maybe make the user use a -force flag or something if there is a post from today?

maybe make the user use a `-force` flag or something if there is a post from today?
Sign in to join this conversation.
No milestone
No project
No assignees
1 participant
Notifications
Due date
The due date is invalid or out of range. Please use the format "yyyy-mm-dd".

No due date set.

Dependencies

No dependencies set.

Reference: hugh/soyuz-cli#2
No description provided.