diff --git a/src/commands/fetch.rs b/src/commands/fetch.rs
index d7c1f3f..0f9061e 100644
--- a/src/commands/fetch.rs
+++ b/src/commands/fetch.rs
@@ -108,7 +108,7 @@ async fn fetch_github() -> String {
async fn fetch_repos() -> String {
match read_config() {
Some(config) => {
- let repos_url = format!("https://pinned.berrysauce.me/get/{}", config.github);
+ let repos_url = format!("https://pinned.berrysauce.me/dev/{}", config.github);
match reqwest::get(&repos_url).await {
Ok(response) => {
diff --git a/src/commands/fetch/formats.rs b/src/commands/fetch/formats.rs
index b67b19f..b450e44 100644
--- a/src/commands/fetch/formats.rs
+++ b/src/commands/fetch/formats.rs
@@ -22,7 +22,7 @@ pub fn format_about(about: About) -> String {
exp.description
.iter()
.map(|s| format!(r#"* {}"#, s))
- .collect::>()
+ .collect::>()
.join("\n"),
)
})
@@ -102,34 +102,23 @@ pub fn format_profile(profile: Profile) -> String {
let created_on = &profile.info.created_at[..10];
let text = format!(
- r#"{}@termfolio
+ r#"{username}@termfolio
----------------------
-Name: {}
-Bio: {}
-Repos: {}
-Langs: {}
-Stars: {}
-Forks: {}
-Company: {}
-Location: {}
-Followers: {}
-Following: {}
-Created on: {}
+Name: {name}
+Bio: {bio}
+Repos: {repos}
+Langs: {langs}
+Stars: {stars}
+Forks: {forks}
+Company: {company}
+Location: {location}
+Followers: {followers}
+Following: {following}
+Created on: {created_on}
{BLOCKS}"#,
- profile.username,
- profile.username,
- name,
- bio,
- repos,
- format_langs(profile.langs),
- stars,
- forks,
- company,
- location,
- followers,
- following,
- created_on
+ username = profile.username,
+ langs = format_langs(profile.langs),
);
format!(