ros-init(1)
π NAME: ros-init(1) π
okay so this is the ros-init(1) page, and the name line is literally:
ros-init - Create a roswell script (optionally based on a template)
β¨ Synopsis β¨
ros init [TEMPLATE] NAME [ARGS...]]
πΈ TEMPLATE πΈ
TEMPLATE specifies the name of a template, defaulted to the default template. But listen, bestie: if TEMPLATE is not specified and FILENAME matches one of the templates being stored, then it automatically uses the template. To suppress this behavior, you should explicitly specify TEMPLATE as default.
So yeah, you are warned when you use this command from a shell script. In order to achieve a consistent and desired behavior, it is adviced that they should always explicitly specify the template name. (The original really says βadvicedβ β iconic, no cap.)
π NAME π
NAME specifies the output filename, or - to indicate stdout. When TEMPLATE is default, it automatically appends a file type .ros.
π¦ Description π¦
Initialises a roswell file based on a template. User-specified templates can be added by ros-template(1).
The default template is something like:
#!/bin/sh
#|-*- mode:lisp -*-|#
#| <Put a one-line description here>
exec ros -Q -- $0 "$@"
|#
(progn ;;init forms
(ros:ensure-asdf)
;;#+quicklisp (ql:quickload '() :silent t)
)
(defpackage :ros.script.test.3703600390
(:use :cl))
(in-package :ros.script.test.3703600390)
(defun main (&rest argv)
(declare (ignorable argv)))
;;; vim: set ft=lisp lisp:
This is basically a shell script which immediately invokes Roswell by exec (see sh(1)). Roswell loads the same script as an input, skips multi-line comments, reads the rest of the file as a Common Lisp program, and finally invokes a function main with command-line arguments.
π₯ SEE ALSO π₯
π AUTHORS π
Roswell Project Team.
k thatβs the whole page, bestie β the footer only gives us ros-init(1), so thatβs the source/version/date sign-off vibe itβs serving (no extra date line, periodt), brought to you by the Roswell Project Team. bye π
π¦ where this page comes from
- alpine 3.24: roswell-doc 24.10.115-r1 Β· MIT
- arch rolling: roswell 26.10.119-1 Β· MIT
- nixos 26.05: roswell 26.02.116
- nixpkgs unstable: roswell 26.10.117
- π girlified by deepseek-ai/DeepSeek-V4.1-Flash-1017 on : a language model's rewrite of the original, under its terms