;;; See devops.texi for complete details.
-(define (devops:full-status) (status #t))
-
-(define (devops:status) (status #f))
-
-(define (status full?)
+(define (devops:status)
(let ((dirt (shell-lines "git status --porcelain --untracked-files=no")))
(if (file-exists? "src/runtime/version.scm")
- (core-status full? dirt))
+ (core-status dirt))
(let ((ps (plugins)))
(if (pair? ps)
- (for-each (lambda (p) (plugin-status p full? dirt)) ps)
- (log "no plugins\n")))))
+ (for-each (lambda (p) (plugin-status p dirt)) ps)
+ (log "No plugins defined.\n")))))
-(define (core-status full? dirt)
+(define (core-status dirt)
(let ((version (core-version))
(changed (core-changed-files)))
(let ((lint (core-lint version changed dirt)))
- (if (or (not (null? lint))
- full?)
+ (if (not (null? lint))
(begin
(log "# "(project-name)" "version":\n")
(write-lint lint)
- (if full?
- (write-changed-files changed)))))))
+ (write-changed-files changed))))))
-(define (plugin-status plugin full? dirt)
+(define (plugin-status plugin dirt)
(let ((changed (plugin-changed-files plugin)))
(let ((lint (plugin-lint plugin changed dirt)))
- (if (or (not (null? lint))
- full?)
+ (if (not (null? lint))
(let ((name (plugin-name plugin))
(vers (plugin-version plugin)))
(log "# "name" "vers":\n")
(write-lint lint)
- (if full?
- (write-changed-files changed)))))))
+ (write-changed-files changed)))))))
(define (write-lint lint)
(for-each (lambda (line)