diff options
| author | Alex Kost <alezost@gmail.com> | 2018-07-19 13:22:41 +0300 |
|---|---|---|
| committer | Alex Kost <alezost@gmail.com> | 2018-07-27 12:14:24 +0300 |
| commit | f224787c718f256e7234512926c6eb501da5e5fb (patch) | |
| tree | bd80bbbddff3e73f31babdbc948ecb02b949634b | |
| parent | Distinguish nix and guix for opening build logs (diff) | |
| download | emacs-build-farm-f224787c718f256e7234512926c6eb501da5e5fb.tar.gz | |
Fix checkdoc warnings
| -rw-r--r-- | build-farm-build.el | 2 | ||||
| -rw-r--r-- | build-farm-url.el | 27 | ||||
| -rw-r--r-- | build-farm.el | 2 |
3 files changed, 16 insertions, 15 deletions
diff --git a/build-farm-build.el b/build-farm-build.el index 39b0646..a85cfea 100644 --- a/build-farm-build.el +++ b/build-farm-build.el @@ -87,7 +87,7 @@ for the number of builds." (declare-function guix-build-log-mode "guix-build-log" t) (defun build-farm-build-view-log (id &optional root-url) - "View build log of a build ID." + "View build log of a build ID from ROOT-URL." (let ((pkg-manager (build-farm-url-package-manager root-url)) (url (or root-url (build-farm-current-url)))) (if (eq pkg-manager 'nix) diff --git a/build-farm-url.el b/build-farm-url.el index 8424024..5147184 100644 --- a/build-farm-url.el +++ b/build-farm-url.el @@ -59,13 +59,14 @@ ;;;###autoload (defun build-farm-set-url (url) - "Set `build-farm-url' to URL. -Interactively, prompt for URL" + "Set variable `build-farm-url' to URL. +Interactively, prompt for URL." (interactive (list (build-farm-read-url))) (setq build-farm-url url)) (defun build-farm-url-type (&optional url) - "Return build farm type by its URL (`build-farm-url' by default)." + "Return build farm type by its URL. +If URL is nil, use variable `build-farm-url'." (or (bui-assoc-value build-farm-url-alist (or url build-farm-url)) (let ((type (if (string-match-p "cuirass" url) @@ -81,7 +82,7 @@ Arbitrarily choosing `%S' type for this URL." "Return a package manager for the build farm URL. The returned value is either `nix' or `guix' symbols or nil, if the package manager cannot be determined. -If URL is nil, use `build-farm-url'." +If URL is nil, use variable `build-farm-url'." (or url (setq url build-farm-url)) (cond ((or (string-match-p (regexp-opt '("gnu" "guix")) url) (eq 'cuirass (build-farm-url-type url))) @@ -91,13 +92,13 @@ If URL is nil, use `build-farm-url'." (defun build-farm-url (&optional root-url &rest url-parts) "Return build farm ROOT-URL with URL-PARTS concatenated to it. -If ROOT-URL is nil, `build-farm-url' variable is used." +If ROOT-URL is nil, use variable `build-farm-url'." (url-expand-file-name (mapconcat #'identity url-parts "") (or root-url build-farm-url))) (cl-defun build-farm-api-url (type args &key root-url) "Return URL for receiving data using build farm API. -See `build-farm-url' for the meaning of ROOT-URL. +See function `build-farm-url' for the meaning of ROOT-URL. TYPE is the name of an allowed method. ARGS is alist of (KEY . VALUE) pairs. Skip ARG, if VALUE is nil or an empty string." @@ -116,13 +117,13 @@ Skip ARG, if VALUE is nil or an empty string." (cl-defun build-farm-build-url (id &key root-url) "Return URL of a build ID. -See `build-farm-url' for the meaning of ROOT-URL." +See function `build-farm-url' for the meaning of ROOT-URL." (build-farm-url root-url "build/" (number-to-string id))) (cl-defun build-farm-build-log-url (id &key root-url raw) "Return URL of the build log of a build ID. If RAW is non-nil, return url of the raw build log file. -See `build-farm-url' for the meaning of ROOT-URL." +See function `build-farm-url' for the meaning of ROOT-URL." (concat (build-farm-build-url id :root-url root-url) "/log" (if raw "/raw" ""))) @@ -130,7 +131,7 @@ See `build-farm-url' for the meaning of ROOT-URL." (cl-defun build-farm-build-latest-api-url (number &key root-url project jobset job system) "Return API URL to receive latest NUMBER of builds. -See `build-farm-url' for the meaning of ROOT-URL." +See function `build-farm-url' for the meaning of ROOT-URL." (build-farm-api-url "latestbuilds" `(("nr" . ,number) @@ -142,7 +143,7 @@ See `build-farm-url' for the meaning of ROOT-URL." (cl-defun build-farm-build-queue-api-url (number &key root-url) "Return API URL to receive the NUMBER of queued builds. -See `build-farm-url' for the meaning of ROOT-URL." +See function `build-farm-url' for the meaning of ROOT-URL." (build-farm-api-url "queue" `(("nr" . ,number)) @@ -153,14 +154,14 @@ See `build-farm-url' for the meaning of ROOT-URL." Above that, you should specify either a single JOBSET-ID argument (it should have a form 'project/jobset') or PROJECT and JOBSET arguments. -See `build-farm-url' for the meaning of ROOT-URL." +See function `build-farm-url' for the meaning of ROOT-URL." (build-farm-url root-url "/jobset/" (or jobset-id (concat project "/" jobset)))) (cl-defun build-farm-jobset-api-url (project &key root-url) "Return API URL for jobsets by PROJECT. -See `build-farm-url' for the meaning of ROOT-URL." +See function `build-farm-url' for the meaning of ROOT-URL." (build-farm-api-url "jobsets" `(("project" . ,project)) @@ -168,7 +169,7 @@ See `build-farm-url' for the meaning of ROOT-URL." (cl-defun build-farm-project-url (&key root-url) "Return URL with bulid farm projects. -See `build-farm-url' for the meaning of ROOT-URL." +See function `build-farm-url' for the meaning of ROOT-URL." ;; Projects are received from the root build farm page. (build-farm-url root-url)) diff --git a/build-farm.el b/build-farm.el index 454f77a..f67eaf2 100644 --- a/build-farm.el +++ b/build-farm.el @@ -76,7 +76,7 @@ (defun build-farm-system-types (&optional url) "Return a list of systems supported by URL. -If URL is nil, use `build-farm-url'." +If URL is nil, use variable `build-farm-url'." (cl-case (build-farm-url-package-manager url) (nix build-farm-nix-system-types) (guix build-farm-guix-system-types) |
