Skip to content
GitLab
Explore
Sign in
Register
Primary navigation
Search or go to…
Project
espresso
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Deploy
Releases
Container Registry
Model registry
Analyze
Contributor 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
Eduardo Trujillo
espresso
Commits
191f98f2
Verified
Commit
191f98f2
authored
2 years ago
by
Eduardo Trujillo
Browse files
Options
Downloads
Patches
Plain Diff
style(cli): Run cargo fmt
parent
b796a61c
No related branches found
Branches containing commit
No related tags found
Loading
Changes
4
Hide whitespace changes
Inline
Side-by-side
Showing
4 changed files
src/cli/args.rs
+5
-2
5 additions, 2 deletions
src/cli/args.rs
src/cli/bundle.rs
+5
-2
5 additions, 2 deletions
src/cli/bundle.rs
src/cli/mod.rs
+1
-1
1 addition, 1 deletion
src/cli/mod.rs
src/cli/serve.rs
+19
-16
19 additions, 16 deletions
src/cli/serve.rs
with
30 additions
and
21 deletions
src/cli/args.rs
+
5
−
2
View file @
191f98f2
use
std
::
path
::
PathBuf
;
use
std
::
path
::
PathBuf
;
use
clap
::{
Parser
,
Subcommand
};
use
clap
::{
Parser
,
Subcommand
};
use
collective
::{
cli
::{
AppOpts
,
ConfigurableAppOpts
},
config
::
ConfigFileFormat
};
use
collective
::{
cli
::{
AppOpts
,
ConfigurableAppOpts
},
config
::
ConfigFileFormat
,
};
use
espresso
::
config
::
Config
;
use
espresso
::
config
::
Config
;
#[derive(Parser)]
#[derive(Parser)]
...
@@ -50,4 +53,4 @@ impl ConfigurableAppOpts<Config> for Opts {
...
@@ -50,4 +53,4 @@ impl ConfigurableAppOpts<Config> for Opts {
vec!
[]
vec!
[]
}
}
}
}
}
}
\ No newline at end of file
This diff is collapsed.
Click to expand it.
src/cli/bundle.rs
+
5
−
2
View file @
191f98f2
use
std
::
sync
::
Arc
;
use
std
::
sync
::
Arc
;
use
espresso
::{
config
::
Config
,
bundle
::{
Bundler
,
packager
}};
use
espresso
::{
bundle
::{
packager
,
Bundler
},
config
::
Config
,
};
use
super
::
args
::
BundleOpts
;
use
super
::
args
::
BundleOpts
;
...
@@ -10,4 +13,4 @@ pub async fn bundle(config: Arc<Config>, opts: BundleOpts) -> Result<(), package
...
@@ -10,4 +13,4 @@ pub async fn bundle(config: Arc<Config>, opts: BundleOpts) -> Result<(), package
bundler
.package
(
opts
.source_path
)
.await
.unwrap
();
bundler
.package
(
opts
.source_path
)
.await
.unwrap
();
Ok
(())
Ok
(())
}
}
\ No newline at end of file
This diff is collapsed.
Click to expand it.
src/cli/mod.rs
+
1
−
1
View file @
191f98f2
pub
mod
args
;
pub
mod
args
;
pub
mod
bundle
;
pub
mod
bundle
;
pub
mod
serve
;
pub
mod
serve
;
\ No newline at end of file
This diff is collapsed.
Click to expand it.
src/cli/serve.rs
+
19
−
16
View file @
191f98f2
use
std
::{
sync
::{
Arc
,
mpsc
},
collections
::
HashSet
};
use
actix
::
System
;
use
actix
::
System
;
use
collective
::
thread
::{
monitor
::{
ThreadMonitor
,
self
},
self
};
use
collective
::
thread
::{
use
espresso
::{
config
::
Config
,
bundle
::{
Unbundler
,
self
},
server
::{
Server
,
self
},
stats
::{
StatsServer
,
self
}};
self
,
monitor
::{
self
,
ThreadMonitor
},
};
use
espresso
::{
bundle
::{
self
,
Unbundler
},
config
::
Config
,
server
::{
self
,
Server
},
stats
::{
self
,
StatsServer
},
};
use
lazy_static
::
lazy_static
;
use
lazy_static
::
lazy_static
;
use
snafu
::{
Snafu
,
ResultExt
};
use
snafu
::{
ResultExt
,
Snafu
};
use
std
::{
collections
::
HashSet
,
sync
::{
mpsc
,
Arc
},
};
use
tokio
::
sync
::
RwLock
;
use
tokio
::
sync
::
RwLock
;
lazy_static!
{
lazy_static!
{
...
@@ -12,18 +23,10 @@ lazy_static! {
...
@@ -12,18 +23,10 @@ lazy_static! {
#[derive(Snafu,
Debug)]
#[derive(Snafu,
Debug)]
pub
enum
Error
{
pub
enum
Error
{
Unbundle
{
Unbundle
{
source
:
bundle
::
Error
},
source
:
bundle
::
Error
,
ServeError
{
source
:
Box
<
server
::
Error
>
},
},
ServeStats
{
source
:
stats
::
Error
},
ServeError
{
MonitorError
{
source
:
monitor
::
Error
},
source
:
Box
<
server
::
Error
>
,
},
ServeStats
{
source
:
stats
::
Error
,
},
MonitorError
{
source
:
monitor
::
Error
,
},
RecvNotify
,
RecvNotify
,
}
}
...
...
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