-
Notifications
You must be signed in to change notification settings - Fork 1
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
fix!: Rename CLI options to
account
and token_id
To harmonize with https://github.com/jmagnusson/netsuite
- Loading branch information
1 parent
2cdae4e
commit aea4244
Showing
5 changed files
with
18 additions
and
18 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,23 +1,23 @@ | ||
use crate::oauth1; | ||
|
||
pub struct Config<'a> { | ||
pub account_id: &'a str, | ||
pub account: &'a str, | ||
pub consumer: oauth1::Token<'a>, | ||
pub token: oauth1::Token<'a>, | ||
} | ||
|
||
impl<'a> Config<'a> { | ||
pub fn new( | ||
account_id: &'a str, | ||
account: &'a str, | ||
consumer_key: &'a str, | ||
consumer_secret: &'a str, | ||
token_key: &'a str, | ||
token_id: &'a str, | ||
token_secret: &'a str, | ||
) -> Self { | ||
Self { | ||
account_id, | ||
account, | ||
consumer: oauth1::Token::new(consumer_key, consumer_secret), | ||
token: oauth1::Token::new(token_key, token_secret), | ||
token: oauth1::Token::new(token_id, token_secret), | ||
} | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters