Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
bulletin
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Wiki
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Releases
Container registry
Model registry
Operate
Environments
Monitor
Incidents
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
GitLab community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
Personal Projects
bulletin
Commits
600a9c64
Unverified
Commit
600a9c64
authored
2 months ago
by
Kevin Lyda
Browse files
Options
Downloads
Patches
Plain Diff
More docs for modules
parent
a3dde8ce
No related branches found
No related tags found
1 merge request
!7
Documentation fixes
Changes
3
Show whitespace changes
Inline
Side-by-side
Showing
3 changed files
ask/ask.go
+3
-1
3 additions, 1 deletion
ask/ask.go
batch/batch.go
+16
-1
16 additions, 1 deletion
batch/batch.go
dclish/dclish.go
+32
-1
32 additions, 1 deletion
dclish/dclish.go
with
51 additions
and
3 deletions
ask/ask.go
+
3
−
1
View file @
600a9c64
/*
/*
Package ask provides routines to ask questions of users. It handles
Package ask provides routines to ask questions of users. It handles
getting a line of text, getting a choice from a liat and other things.
getting a line of text, getting a choice from a list and other things.
Underneath it uses the [github.com/chzyer/readline] module.
*/
*/
package
ask
package
ask
...
...
This diff is collapsed.
Click to expand it.
batch/batch.go
+
16
−
1
View file @
600a9c64
// Package batch contains the non-interactive maintenence commands.
// Package batch contains both interactive and non-interactive maintenence
// commands.
//
// The interactive batch commands are as follows:
//
// - `install` does the initial install for bulletin. This will create
// and seed the database and create the initial user. It will also
// create the user's crontab entries.
// - `new-user` creates a new user.
//
// The non-interactive batch commands are run from the user's crontab.
//
// - `reboot` is supposed to be run on system reboot and will delete
// all shutdown messages.
// - `expire` removes all expired messages and deletes broadcast messages
// older than 3 days.
package
batch
package
batch
import
(
import
(
...
...
This diff is collapsed.
Click to expand it.
dclish/dclish.go
+
32
−
1
View file @
600a9c64
// Package dclish A DCL-like command line parser.
/*
Package dclish A DCL-like command line parser.
From the OpenVMS manual on how to parse a DCL command line.
The following rules apply when entering DCL commands. Refer to
Chapter 5 for information about using extended file names in DCL
commands.
- Use any combination of uppercase and lowercase letters. The DCL
interpreter translates lowercase letters to uppercase. Uppercase and
lowercase characters in parameter and qualifier values are equivalent
unless enclosed in quotation marks (" ").
- Separate the command name from the first parameter with at least one
blank space or a tab.
- Separate each additional parameter from the previous parameter or
qualifier with at least one blank space or a tab.
- Begin each qualifier with a slash (/). The slash serves as a separator
and need not be preceded by blank spaces or tabs.
- If a parameter or qualifier value includes a blank space or a tab,
enclose the parameter or qualifier value in quotation marks.
- You cannot specify null characters (<NUL>) on a DCL command line,
even if you enclose the null character in quotation marks.
- Include no more than 127 elements (parameters, qualifiers, and qualifier
values) in each command line.
- Each element in a command must not exceed 255 characters. The entire
command must not exceed 1024 characters after all symbols1 and lexical
functions2 are converted to their values.
- You can abbreviate a command as long as the abbreviated name remains
unique among the defined commands on a system. DCL looks only at the
first four characters for uniqueness.
*/
package
dclish
package
dclish
import
(
import
(
...
...
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment