Skip to content
GitLab
Explore
Sign in
Register
Primary navigation
Search or go to…
Project
pleroma
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Wiki
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
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
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
Alex Gleason
pleroma
Commits
e1814bb3
Verified
Commit
e1814bb3
authored
6 years ago
by
Haelwenn
Browse files
Options
Downloads
Patches
Plain Diff
Document mix tasks
parent
8221c56c
No related branches found
Branches containing commit
No related tags found
Tags containing commit
No related merge requests found
Changes
3
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
lib/mix/tasks/make_moderator.ex
+8
-1
8 additions, 1 deletion
lib/mix/tasks/make_moderator.ex
lib/mix/tasks/register_user.ex
+8
-0
8 additions, 0 deletions
lib/mix/tasks/register_user.ex
lib/mix/tasks/set_locked.ex
+10
-1
10 additions, 1 deletion
lib/mix/tasks/set_locked.ex
with
26 additions
and
2 deletions
lib/mix/tasks/make_moderator.ex
+
8
−
1
View file @
e1814bb3
defmodule
Mix
.
Tasks
.
SetModerator
do
@moduledoc
"""
Set moderator to a local user
Usage: ``mix set_moderator <username>``
Example: ``mix set_moderator lain``
"""
use
Mix
.
Task
import
Mix
.
Ecto
alias
Pleroma
.
{
Repo
,
User
}
@shortdoc
"Set moderator status"
def
run
([
nickname
|
rest
])
do
Application
.
ensure_all_started
(
:pleroma
)
...
...
This diff is collapsed.
Click to expand it.
lib/mix/tasks/register_user.ex
+
8
−
0
View file @
e1814bb3
defmodule
Mix
.
Tasks
.
RegisterUser
do
@moduledoc
"""
Manually register a local user
Usage: ``mix register_user <name> <nickname> <email> <bio> <password>``
Example: ``mix register_user 仮面の告白 lain lain@example.org "blushy-crushy fediverse idol + pleroma dev" pleaseDontHeckLain``
"""
use
Mix
.
Task
alias
Pleroma
.
{
Repo
,
User
}
...
...
This diff is collapsed.
Click to expand it.
lib/mix/tasks/set_locked.ex
+
10
−
1
View file @
e1814bb3
defmodule
Mix
.
Tasks
.
SetLocked
do
@moduledoc
"""
Lock a local user
The local user will then have to manually accept/reject followers. This can also be done by the user into their settings.
Usage: ``mix set_locked <username>``
Example: ``mix set_locked lain``
"""
use
Mix
.
Task
import
Mix
.
Ecto
alias
Pleroma
.
{
Repo
,
User
}
@shortdoc
"Set locked status"
def
run
([
nickname
|
rest
])
do
ensure_started
(
Repo
,
[])
...
...
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