Skip to content
GitLab
Projects
Groups
Snippets
Help
Loading...
Help
See what's new at GitLab
4
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Switch to GitLab Next
Sign in / Register
Toggle navigation
V
vitis
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Locked Files
Issues
6
Issues
6
List
Boards
Labels
Service Desk
Milestones
Iterations
Merge Requests
0
Merge Requests
0
Requirements
Requirements
List
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Test Cases
Security & Compliance
Security & Compliance
Dependency List
License Compliance
Operations
Operations
Incidents
Environments
Packages & Registries
Packages & Registries
Package Registry
Container Registry
Analytics
Analytics
CI / CD
Code Review
Insights
Issue
Repository
Value Stream
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
Eugene 'Vindex' Stulin
vitis
Commits
3afcedc7
Commit
3afcedc7
authored
Dec 05, 2019
by
Eugene 'Vindex' Stulin
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
HTML-page is saved only if command line option --save is set
parent
be7ed5f5
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
14 additions
and
12 deletions
+14
-12
source/module_assign.d
source/module_assign.d
+13
-12
source/module_delete.d
source/module_delete.d
+1
-0
No files found.
source/module_assign.d
View file @
3afcedc7
...
...
@@ -60,10 +60,15 @@ void mainFn(string[] args) {
return
;
}
bool
s
ave
=
(
VitisConf
.
getAutosave
==
"yes"
)
?
true
:
false
;
bool
confOptionS
ave
=
(
VitisConf
.
getAutosave
==
"yes"
)
?
true
:
false
;
string
destFileSpace
;
getopt
(
args
,
config
.
passThrough
,
"save"
,
&
save
,
"to"
,
&
destFileSpace
);
if
(!
destFileSpace
.
empty
)
save
=
true
;
bool
cliOptionSave
=
false
;
getopt
(
args
,
config
.
passThrough
,
"save"
,
&
cliOptionSave
,
"to"
,
&
destFileSpace
);
if
(!
destFileSpace
.
empty
)
{
cliOptionSave
=
true
;
}
bool
save
=
confOptionSave
||
cliOptionSave
;
//vitis assign [[-c] <category>] -f <file list>
string
[]
files
=
args
.
extractOptionRange
(
"-f"
);
...
...
@@ -161,7 +166,7 @@ void mainFn(string[] args) {
checkCondition
!
err
(
args
.
length
==
1
);
assignCategoriesToNetLinks
(
categories
,
networkLinks
,
s
ave
,
cliOptionS
ave
,
userConfirmation
,
userDenial
);
return
;
...
...
@@ -944,18 +949,14 @@ private string[] createNonExistentCategories(string[] categories,
private
string
saveLinkEntry
(
string
url
)
{
string
linkEntriesDir
;
bool
HTML
=
amalthea
.
net
.
urlIsHTML
(
url
);
if
(
HTML
)
{
linkEntriesDir
=
getHTMLLinkEntriesPath
();
}
else
{
linkEntriesDir
=
getNonHTMLLinkEntriesPath
();
}
string
tempEntryPath
;
string
linkEntriesDir
=
HTML
?
getHTMLLinkEntriesPath
()
:
getNonHTMLLinkEntriesPath
();
string
tempEntryPath
;
// path to desktop-file
tempEntryPath
=
amalthea
.
fs
.
createNetworkLink
(
url
,
std
.
file
.
tempDir
);
scope
(
exit
)
rm
(
tempEntryPath
);
// comments in entry is not used now
if
(
HTML
)
{
amalthea
.
fs
.
setFieldOfDesktopFile
(
tempEntryPath
,
"Comment"
,
"html"
);
}
else
{
...
...
source/module_delete.d
View file @
3afcedc7
...
...
@@ -107,6 +107,7 @@ void deleteCategories(string[] categories, bool force = false) {
}
}
string
[]
getSubcategories
(
string
category
)
{
auto
categoryPath
=
getCatDirPath
(
category
);
auto
dirList
=
amalthea
.
fs
.
getDirList
(
categoryPath
);
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment