Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
D
DojoCLI
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Wiki
External wiki
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Releases
Package registry
Model registry
Operate
Environments
Terraform modules
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
Dojo Project (HES-SO)
Projects
UI
DojoCLI
Commits
d02909da
Commit
d02909da
authored
1 year ago
by
vincent.steinman
Committed by
michael.minelli
11 months ago
Browse files
Options
Downloads
Patches
Plain Diff
tag command CLI
parent
98d58a74
No related branches found
No related tags found
No related merge requests found
Changes
3
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
NodeApp/src/commander/CommanderApp.ts
+2
-0
2 additions, 0 deletions
NodeApp/src/commander/CommanderApp.ts
NodeApp/src/managers/DojoBackendManager.ts
+15
-0
15 additions, 0 deletions
NodeApp/src/managers/DojoBackendManager.ts
NodeApp/src/sharedByClients
+1
-1
1 addition, 1 deletion
NodeApp/src/sharedByClients
with
18 additions
and
1 deletion
NodeApp/src/commander/CommanderApp.ts
+
2
−
0
View file @
d02909da
...
...
@@ -13,6 +13,7 @@ import AuthCommand from './auth/AuthCommand.js';
import
SessionCommand
from
'
./auth/SessionCommand.js
'
;
import
UpgradeCommand
from
'
./UpgradeCommand.js
'
;
import
TextStyle
from
'
../types/TextStyle.js
'
;
import
TagCommand
from
'
./tags/TagCommand
'
;
class
CommanderApp
{
...
...
@@ -118,6 +119,7 @@ ${ TextStyle.CODE(' dojo upgrade ') }`, {
SessionCommand
.
registerOnCommand
(
this
.
program
);
AssignmentCommand
.
registerOnCommand
(
this
.
program
);
ExerciseCommand
.
registerOnCommand
(
this
.
program
);
TagCommand
.
registerOnCommand
(
this
.
program
);
CompletionCommand
.
registerOnCommand
(
this
.
program
);
UpgradeCommand
.
registerOnCommand
(
this
.
program
);
}
...
...
This diff is collapsed.
Click to expand it.
NodeApp/src/managers/DojoBackendManager.ts
+
15
−
0
View file @
d02909da
...
...
@@ -249,6 +249,21 @@ class DojoBackendManager {
return
false
;
}
}
public
async
addTag
(
name
:
string
,
type
:
string
)
:
Promise
<
User
>
{
return
(
await
axios
.
post
<
DojoBackendResponse
<
User
>>
(
this
.
getApiUrl
(
ApiRoute
.
ADD_TAG
).
replace
(
'
{{tageName}}
'
,
name
).
replace
(
'
{{tagType}}
'
,
type
))).
data
.
data
;
}
public
async
deleteTag
(
name
:
string
)
:
Promise
<
User
>
{
return
(
await
axios
.
delete
<
DojoBackendResponse
<
User
>>
(
this
.
getApiUrl
(
ApiRoute
.
DELETE_TAG
).
replace
(
'
{{tageName}}
'
,
name
))).
data
.
data
;
}
public
async
getProposeTag
(
name
:
string
)
:
Promise
<
User
>
{
return
(
await
axios
.
get
<
DojoBackendResponse
<
User
>>
(
this
.
getApiUrl
(
ApiRoute
.
PROPOSE_TAG
).
replace
(
'
{{tageName}}
'
,
name
))).
data
.
data
;
}
public
async
postProposeTag
(
name
:
string
,
type
:
string
)
:
Promise
<
User
>
{
return
(
await
axios
.
post
<
DojoBackendResponse
<
User
>>
(
this
.
getApiUrl
(
ApiRoute
.
PROPOSE_TAG
).
replace
(
'
{{tageName}}
'
,
name
).
replace
(
'
{{tagType}}
'
,
type
))).
data
.
data
;
}
public
async
answerProposeTag
(
name
:
string
)
:
Promise
<
User
>
{
return
(
await
axios
.
patch
<
DojoBackendResponse
<
User
>>
(
this
.
getApiUrl
(
ApiRoute
.
ANSWER_TAG_PROPOSAL
).
replace
(
'
{{tageName}}
'
,
name
))).
data
.
data
;
}
}
...
...
This diff is collapsed.
Click to expand it.
sharedByClients
@
60ce3995
Compare
55a94e77
...
60ce3995
Subproject commit
55a94e77db69635e1ca837a52de29cb04d0b4138
Subproject commit
60ce3995edec4f907f62dd03a32cc24660de51b1
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