We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent f562a94 commit b9eece0Copy full SHA for b9eece0
1 file changed
src/lib.rs
@@ -118,6 +118,16 @@ pub async fn run_command(command: Commands) -> Result<()> {
118
use cli::ChatProvider;
119
use config::load_agent_config;
120
121
+ // Check if user is authenticated with Syncable
122
+ if !auth::credentials::is_authenticated() {
123
+ println!("\n\x1b[1;33m📢 Sign in to use Syncable Agent\x1b[0m");
124
+ println!(" It's free and costs you nothing!\n");
125
+ println!(" Run: \x1b[1;36msync-ctl auth login\x1b[0m\n");
126
+ return Err(error::IaCGeneratorError::Config(
127
+ error::ConfigError::MissingConfig("Syncable authentication required".to_string())
128
+ ));
129
+ }
130
+
131
let project_path = path.canonicalize().unwrap_or(path);
132
133
// Handle --resume flag
0 commit comments