Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
36 commits
Select commit Hold shift + click to select a range
a8018a8
deploy to the Cloud
bacongobbler Sep 29, 2022
62935af
first hack at `spin login`
bacongobbler Oct 4, 2022
2517870
standardize to config.json
bacongobbler Oct 4, 2022
fa66141
use credentials from `spin login`
bacongobbler Oct 4, 2022
952f803
bugfix: ensure directory, check token's expiration date
bacongobbler Oct 4, 2022
bc8801f
more context
bacongobbler Oct 4, 2022
4366a8f
move to spin-publish; emulate hippo client 1:1
bacongobbler Oct 5, 2022
93e36f0
spin login --status
bacongobbler Oct 5, 2022
517bd20
set DEFAULT_CLOUD_URL constant
bacongobbler Oct 5, 2022
24eb47b
cargo fmt
bacongobbler Oct 5, 2022
e5ead3d
login if token expired
bacongobbler Oct 5, 2022
ad047e9
log in if config file does not exist
bacongobbler Oct 5, 2022
257345d
cargo clippy
bacongobbler Oct 5, 2022
4714951
cargo fmt
bacongobbler Oct 5, 2022
7ae65ce
implement --get-device-code, --check-device-code
bacongobbler Oct 6, 2022
e52835c
check based on value of --hippo-username
bacongobbler Oct 6, 2022
c782b2d
print config.json to the terminal
bacongobbler Oct 6, 2022
0b3bc9c
remove unused imports
bacongobbler Oct 6, 2022
06eafe8
report waiting status if device code check fails
bacongobbler Oct 6, 2022
4ac19e7
write token to disk when --check-device-code
bacongobbler Oct 6, 2022
38a5e5f
check for regular response
bacongobbler Oct 6, 2022
9f80d71
prompt for authentication method
bacongobbler Oct 7, 2022
5aca581
prompt for username/password
bacongobbler Oct 7, 2022
bb26e62
reintegrate sloth warnings
bacongobbler Oct 7, 2022
2019333
return tcp connect errors
bacongobbler Oct 7, 2022
1948d6d
fix patch APIs
bacongobbler Oct 7, 2022
742908b
DRY up the login logic
bacongobbler Oct 7, 2022
2196cde
fix auth method issues with --check-device-code
bacongobbler Oct 11, 2022
cecf0ac
report error on invalid --method
bacongobbler Oct 11, 2022
483788a
check token info is none
bacongobbler Oct 11, 2022
83e1ed3
HACK: manually patch the PatchChannelsCommand
bacongobbler Oct 11, 2022
5c53150
cargo fmt
bacongobbler Oct 11, 2022
3235540
simplify requires and auth mothod logic
bacongobbler Oct 12, 2022
2e3dc47
prompt only if --hippo-server is set
bacongobbler Oct 12, 2022
8edc515
Update integration tests to use login
itowlson Oct 13, 2022
f4d5737
Minor refactoring of auth_method
itowlson Oct 13, 2022
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
1,350 changes: 1,111 additions & 239 deletions Cargo.lock

Large diffs are not rendered by default.

7 changes: 7 additions & 0 deletions Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -10,8 +10,12 @@ async-trait = "0.1"
atty = "0.2"
bindle = { git = "https://github.com/fermyon/bindle", tag = "v0.8.1", default-features = false, features = ["client"] }
bytes = "1.1"
chrono = "0.4"
clap = { version = "3.1.15", features = ["derive", "env"] }
cloud = { path = "crates/cloud" }
cloud-openapi = { git = "https://github.com/fermyon/cloud-openapi" }
comfy-table = "5.0"
copypasta = "0.8.1"
ctrlc = { version = "3.2", features = ["termination"] }
dialoguer = "0.10"
dirs = "4.0"
Expand All @@ -20,13 +24,15 @@ env_logger = "0.9"
futures = "0.3"
hippo-openapi = "0.10"
hippo = { git = "https://github.com/deislabs/hippo-cli", tag = "v0.16.1" }
keyring = "1"
lazy_static = "1.4.0"
nix = { version = "0.24", features = ["signal"] }
outbound-http = { path = "crates/outbound-http" }
outbound-redis = { path = "crates/outbound-redis" }
path-absolutize = "3.0.11"
regex = "1.5.5"
reqwest = { version = "0.11", features = ["stream"] }
rpassword = "7.0"
semver = "1.0"
serde = { version = "1.0", features = [ "derive" ] }
serde_json = "1.0.82"
Expand All @@ -49,6 +55,7 @@ tracing-subscriber = { version = "0.3.7", features = [ "env-filter" ] }
url = "2.2.2"
uuid = "^1.0"
wasmtime = "0.39.1"
webbrowser = "0.7.1"

[target.'cfg(target_os = "linux")'.dependencies]
# This needs to be an explicit dependency to enable
Expand Down
42 changes: 42 additions & 0 deletions crates/cloud/Cargo.toml
Original file line number Diff line number Diff line change
@@ -0,0 +1,42 @@
[package]
name = "cloud"
version = "0.1.0"
edition = "2021"
authors = [ "Fermyon Engineering <engineering@fermyon.com>" ]

[dependencies]
anyhow = "1.0"
async-trait = "0.1"
clap = { version = "3.0", features = ["derive", "env"] }
colored = "2.0.0"
dialoguer = "0.9"
dirs = "4.0"
dunce = "1.0"
env_logger = "0.9"
futures = "0.3.14"
glob = "0.3.0"
cloud-openapi = { git = "https://github.com/fermyon/cloud-openapi" }
itertools = "0.10.0"
log = "0.4"
mime_guess = { version = "2.0" }
path-absolutize = "3.0.11"
regex = "1.5"
reqwest = { version = "0.11", features = ["stream"] }
semver = "1.0"
serde = {version = "1.0", features = ["derive"]}
serde_json = "1.0"
sha2 = "0.9"
spin-loader = { path = "../loader" }
spin-publish = { path = "../publish" }
tempfile = "3.3.0"
tokio = { version = "1.17", features = ["full"] }
tokio-util = { version = "0.7.3", features = ["codec"] }
tracing = { version = "0.1", features = [ "log" ] }
toml = "0.5"
uuid = "1"

[dependencies.bindle]
git = "https://github.com/fermyon/bindle"
tag = "v0.8.1"
default-features = false
features = ["client"]
Loading