Skip to content
This repository was archived by the owner on Aug 30, 2025. It is now read-only.
Open
Show file tree
Hide file tree
Changes from all commits
Commits
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
24 changes: 24 additions & 0 deletions .travis.yml
Original file line number Diff line number Diff line change
Expand Up @@ -39,16 +39,24 @@ matrix:
rust: stable
before_script:
- rustup component add clippy-preview
- cargo clippy --version
- rustup component add rustfmt
- rustfmt --version
script:
- cargo clippy --all-targets --all-features -- -D warnings
- cargo fmt --all -- --check
- cargo test --verbose
- cargo build --release --target $TARGET --locked
<<: *DEPLOY_TO_GITHUB

- name: Linux-Beta
env: TARGET=x86_64-unknown-linux-gnu
rust: beta
before_script:
- rustup component add rustfmt
- rustfmt --version
script:
- cargo fmt --all -- --check
- cargo test --verbose
- cargo build --verbose

Expand All @@ -57,8 +65,12 @@ matrix:
rust: nightly
before_script:
- rustup component add clippy-preview
- cargo clippy --version
- rustup component add rustfmt
- rustfmt --version
script:
- cargo clippy --all-targets --all-features -- -D warnings
- cargo fmt --all -- --check
- cargo test --verbose
- cargo build --verbose

Expand All @@ -68,8 +80,12 @@ matrix:
rust: stable
before_script:
- rustup component add clippy-preview
- cargo clippy --version
- rustup component add rustfmt
- rustfmt --version
script:
- cargo clippy --all-targets --all-features -- -D warnings
- cargo fmt --all -- --check
- cargo test --verbose
- cargo build --release --target $TARGET --locked
<<: *DEPLOY_TO_GITHUB
Expand All @@ -78,7 +94,11 @@ matrix:
os: windows
env: TARGET=x86_64-pc-windows-msvc
rust: beta
before_script:
- rustup component add rustfmt
- rustfmt --version
script:
- cargo fmt --all -- --check
- cargo test --verbose
- cargo build --verbose

Expand All @@ -88,7 +108,11 @@ matrix:
rust: nightly
before_script:
- rustup component add clippy-preview
- cargo clippy --version
- rustup component add rustfmt
- rustfmt --version
script:
- cargo clippy --all-targets --all-features -- -D warnings
- cargo fmt --all -- --check
- cargo test --verbose
- cargo build --verbose
8 changes: 5 additions & 3 deletions src/main.rs
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
extern crate clap;
extern crate supernova;

use clap::{App, Arg, crate_name, crate_version};
use clap::{crate_name, crate_version, App, Arg};
use std::process;
use supernova::Config;

Expand All @@ -12,13 +12,15 @@ fn main() {
Arg::with_name("USERNAME")
.help("The user whose stars to collect")
.required(true),
).arg(
)
.arg(
Arg::with_name("TOKEN")
.short("t")
.long("token")
.help("Sets the authentication token for requests to GitHub")
.takes_value(true),
).get_matches()
)
.get_matches()
.into();

if let Err(e) = supernova::collect_stars(config) {
Expand Down