tools/upload: fix +upload/browse & add docstrings

This commit is contained in:
Henrik Lissner 2018-02-21 05:10:31 -05:00
parent e659ab0609
commit e6f58d3714
No known key found for this signature in database
GPG key ID: 5F6C0EA160557395

View file

@ -1,34 +1,33 @@
;;; tools/upload/autoload.el -*- lexical-binding: t; -*-
;;;###autoload
(defun +upload/local (&optional force-p)
"TODO"
(interactive)
(defun +upload/put-file (&optional force-p)
"Upload the current buffer's file to the configured remote."
(interactive "P")
(if force-p
(ssh-deploy-upload-handler-forced)
(ssh-deploy-upload-handler)))
;;;###autoload
(defun +upload/remote-download ()
"TODO"
(defun +upload/get-file ()
"Download the current buffer's file from the configured remote."
(interactive)
(ssh-deploy-download-handler))
;;;###autoload
(defun +upload/diff ()
"TODO"
(defun +upload/diff-file ()
"Open a diff of the local file against the remote."
(interactive)
(ssh-deploy-diff-handler))
;;;###autoload
(defun +upload/browse ()
"TODO"
"Browse the remote directory mapped to this file's directory."
(interactive)
(ssh-deploy-browse-remove-handler))
(ssh-deploy-browse-remote-handler))
;;;###autoload
(defun +upload/check-remote ()
"TODO"
"Check if local file exists or if the remote file has changed."
(interactive)
(ssh-deploy-remote-changes-handler))